我有一个早期运行良好的asp.net MVC 4。现在,当我运行它时,我得到了像
这样的错误A non-recoverable error occurred during a database lookup
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.Net.Sockets.SocketException: A non-recoverable error occurred during a database lookup
Source Error:
Line 291: using (MySqlConnection cnn = new MySqlConnection(Globals.CONNSTRING))
Line 292: {
Line 293: cnn.Open();
Line 294:
Line 295: using (MySqlCommand cmd = cnn.CreateCommand())
我将它上传到服务器上,这会使IIS在服务器上崩溃。现在服务器上的每个站点都不起作用。有人可以告诉我如何解决它吗?
我在电脑上遇到的这个例外。当我访问我的网站时,我看到了
Service Unavailable
HTTP Error 503. The service is unavailable.
答案 0 :(得分:0)
无法找到您的数据库查找...检查连接字符串并确保您部署的每个部分共享相同的连接逻辑:)