This operation requires a connection to the 'master' database

前端 未结 9 730
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 19:28

I have suddenly started getting an error in my application.

The error is:

This operation requires a connection to the \'master\' database. Una

9条回答
  •  北海茫月
    2021-01-03 20:14

    I am so stupid. I faced the same error and then I realized that I was running the update-database -verbose command in Package Manager Console in Release mode when I hadn't configured the transformations for release mode.

    Here is the connectionstring format that worked for me in Debug mode.

    Password=dumbeldore;Persist Security Info=True;User ID=johnmcclain;Initial Catalog=DB_diehard400;Data Source=killthatbill;

    • sensitive info in the connectionstring edited for security reasons. Please follow only the format.

提交回复
热议问题