I had a similar problem only with Visual Studio 2012 Express for Web, and also with "Getting Started with ASP.Net MVC3" at www.asp.net. The tutorial used the version of Sql Server Compact, but I have SQL Express 2012, so I changed the connection string to indicate the data source in my local instance. \ SQLExpress2012. The application worked perfectly and skillfully read and write to the database. However, I could not edit the database in Visual Studio Express Database Explorer (all parameters of the context menu were missing, except for "refresh" and "properties").
I found that changing the data source in the connection string to " Data Source = (LocalDB) \ v11.0; " fixes the problem. I read somewhere that if you use LocalDb instead of the instance name of SQL Server, then it will be available under your user account - there must be some issue with permissions.
The whole (working) connection string: "Data source = (LocalDB) \ v11.0; AttachDBFilename = | DataDirectory | Movies.mdf; Integrated Security = True;"
Hope this saves someone a bunch of hours pulling hair, I'm almost bald now :)
source share