asp.net – 此操作需要连接到“主”数据库
发布时间:2020-05-24 04:08:05 所属栏目:asp.Net 来源:互联网
导读:我突然开始在我的asp.net MVC 4 Web应用程序中出现错误. 错误是: This operation requires a connection to the ‘master’ database. Unable to create a connection to the ‘master’ database because the original database connection
|
我突然开始在我的asp.net MVC 4 Web应用程序中出现错误. 错误是:
代码中没有任何变化 – 数据库访问在整个代码的其余部分都很好. 它停在这条线上: var filteredContacts = dc.EAContactLists.Where(o => teams.Contains(o.Team)).ToList(); 我迷失在这一个. 解决方法尝试在连接字符串中设置Persist Security Info = True.希望这可以帮助. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- asp.net-mvc – MVC4捆绑使用Scripts.Render时速
- asp.net-mvc-3 – 默认模型绑定器没有绑定到字段
- asp.net – RequiredFieldValidator在文本上放置
- asp.net-mvc-4 – ValidateInput(false)vs Allow
- asp.net-mvc – 尝试确定在干净安装的窗口上托管
- asp.net-mvc – 字段必须是数字 如何将此消息更改
- asp.net – 为什么不能在发布模式下构建网站?
- asp.net-mvc – MVC 5脚手架不为基本EF派生数据发
- 使用ASP.Net MVC3中的jQuery动态填充下拉列表
- asp.net-mvc – 实体框架SQLite部署
热点阅读
