Article ID: 2009225 - View products that this article applies to.
In Visual Studio, when you right click on the App_Data folder and try to add a new SQL Server database, you may receive the following exception:
Connections to SQL Server files (*.mdf) require a SQL Server user instance, which is a feature of SQL Server Express edition and is not supported by other editions of SQL Server (such as Developer or Enterprise).
In general, the exception has the following causes:
Note: Because SQL Server 2008 is released after Visual Studio 2005 and Visual Studio 2008, the exception message does not include SQL Server 2008 Express.
Verify that SQL Server express edition (either 2005 or 2008 version) is properly installed and is currently running on the system. You can use SQL Server Configuration Manager to check and start the SQL instances that are installed on the system.
If the SQL Server Express instance is running, check if Visual Studio is pointing to the correct SQL instance. You can do this by navigating to Data connections under Tools -> Options in Visual Studio IDE.
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.
Article ID: 2009225 - Last Review: December 15, 2009 - Revision: 1.0