Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Unable to create mdf file in ASP.NET MVC 4

$
0
0

When I try to add a new SQL Server Database mdf file to my Visual Studio 2010 ASP.NET MCV 4 project, I get the error message, "Connections to SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer. The current version of SQL Server Express can be downloaded at the following URL: http://go.microsoft.com/fwlink/?LinkId=125883"

So I install SQL Server 2008 Express, and still I get the same error message.

So then I uninstall all my SQL Server programs from Control Panel - Programs and Features. Any program that had SQL in the title I uninstalled, including the 2012 SQL Management Studio I had prior. After a very long uninstall process including computer restarts, I then install just SQL Server 2008 Express. Now, when I try adding a new SQL Server Database mdf file to my Visual Studio 2010 ASP.NET MCV 4 project, I get the SAME ERROR MESSAGE.

I currently have 7 "Microsoft SQL Server 2008" programs in Control Panel - Programs and Features, and a "Microsoft SQL Server 2012 Setup (English)" program. I have tried several times to uninstall the SQL Server 2012 program but recieve error message, "Waring 26003. Microsoft SQL Server 2012 Setup Support Files cannot be uninstalled because the following products are installed: SQL Server 2012 Common Files, SQL Server 2012 Database Engine Shared"

I am using Windows 7, Visual Studio 2010, SQL Server 2008 Express.

I just want to add a SQL Server Database mdf file to my Visual Studio 2010 ASP.NET MCV 4 project in the App_Data folder.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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