我正在使用来自Internet模板的MVC 4和简单的成员资格提供程序。站点在Azure WebSites中运行,SQL也在Azure中。
可悲的是,我每次发布新版本后都会收到错误。
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
我明白了,如果我从浏览器中删除cookie,该网站将重新开始工作。
任何想法如何解决?
感谢。
修改: 我发现完全相同的问题here.
建议的解决方案https://stackoverflow.com/a/12991835/1585397“以某种方式”正在运作。有时是,有时不是..