Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Visual Studio 2012 not opening .MDF Database Because It Is Version 661.

$
0
0

I have Microsoft SQL Server 2008 installed on my computer along with Microsoft SQL Server 2008 R2.

I had a website project that I was working on in Visual Studio Express 2010. I then had Visual Studio 2012 installed and made use of the ASP.NET Website Administration Tool to create and administer user accounts. Visual Studio created inside the App_Data folder of my website project the ASPNETDB.mdf database to store login information ect. and update my web.config file. Everything was working fine I could connect to the database and login to the back end of my website just fine after providing my login credentials.   

I recently had to uninstall and reinstall these applications. Now when I try to access the ASPNETDB.mdf  in the Solution Explorer I see a red X beside the database name and when I click on it to try to access it the following error appears.

The database 'C:\USERS\AHOF\DESKTOP\WEB\WEBSITE10 -5-7-12\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported. Could not open new database 'C:\USERS\AHOF\DESKTOP\WEB\WEBSITE10 -5-7-12\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted. An attempt to attach an auto-named database for file C:\Users\ahof\Desktop\web\WebSite10 -5-7-12\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

I can bring up the website fine but when I try to lo-gin to the back end of the website I get the same error.

What is causing the error and how do I fix it?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>