I am using VS 2010, MVC 3.0, SQL Server Standard edition (not Express). I am trying to create aspnetdb
on a MVC 3.0 project (MusicStore
) application.
When I click on WSAT (Web Site Administration Tool) - Security tab I am getting this error:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
Can anyone please help on this.
Thanks.
Since you don't have SQL Server Express installed, you cannot use that connection string. The AttachDbFileName=
and User Instance
features are available exclusively in SQL Server Express.
You need to:
execute the aspnet_regsql
utility (in your C:\Windows\Microsoft.NET\Framework\v4.0.30319
directory - adapt to your framework version, and possibly use the Framework64
if you're running on a 64-bit machine) against your SU\SQLSERVER
instance to create the ASP.NET membership database on your server
you need to change the connection string to go to the server - not use the attached file:
Data Source=SU\SQLSERVER;database=ASPNETDB;Integrated Security=SSPI;