Posts

Showing posts from December, 2011

Issues with using EF with MVC 4.0

Error message: “This operation requires a connection to the 'master' database. Unable to create a connection to the 'master' database because the original database connection has been opened and credentials have been removed from the connection string. Supply an unopened connection.” To resolve this issue change the connectionString property in the Web.config file of the asp.net application to allow to Persist Security Information. To accomplish this add Persist Security Info=True to the connectionString like this ~ <addname="MvcDBContext" connectionString="Server=;Database=;User ID=<UserId>;Password=;Persist Security Info=True" providerName="System.Data.SqlClient"/>
So the whole Connection Strings tag would look like this
  <connectionStrings>     <addname="MvcDBContext" connectionString="Server=;Database=;User ID=<UserId>;Password=;Persist Security Info=True" providerName="System.D…