【发布时间】:2013-09-26 04:23:56
【问题描述】:
我有一个早期工作正常的 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.
【问题讨论】:
-
你能连接到你的数据库吗?您可以确保数据库仍在运行。
-
服务不可用。 IE。运行该站点的服务未运行...应用程序池。
-
只检查连接字符串,问题可能与
MySql的连接有关。还要确保MySql在端口 3306 上运行。 -
@ArjunVachhani 我已经运行了一切。我只是写了一个错误的语句,错误地它会同时上传到服务器。
标签: c# asp.net-mvc iis