I saw that this is common problem, however did not manage to solve it yet.
It's about example from http://www.w3schools.com/ASPnet/mvc_models.asp
This example uses SQL Server Compact Local Database (SDF), but I need it with SQL Server Database File (MDF).
I got following error:
CREATE DATABASE permission denied in database 'master'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'.
This is connectionString in my Web.config file:
<add
providerName="System.Data.SqlClient"
connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|Movies.mdf;InitialCatalog=DatabaseName;MultipleActiveResultSets=True;Integrated Security=True;" name="MovieDBContext" />
Can you help me how to solve this?