C# 我的asp.net网站突然停止工作

C# 我的asp.net网站突然停止工作,c#,asp.net-mvc,iis,C#,Asp.net Mvc,Iis,我有一个asp.NETMVC4,它在早期工作得很好。现在当我运行它时,我得到了如下错误 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 abo

我有一个asp.NETMVC4,它在早期工作得很好。现在当我运行它时,我得到了如下错误

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.

找不到您的数据库查找…请检查连接字符串,并确保您部署的每个部分共享相同的连接逻辑:)

您能连接到您的数据库吗?您可以确保数据库仍处于运行状态。服务不可用。即,运行站点的服务未运行。。。应用程序池。只需检查连接字符串,问题可能与使用
MySql
的连接有关。还要确保
MySql
正在3306端口上运行。@ArjunVachhani我已经运行了所有程序。我只是写了一个错误的语句,错误地将它同时上传到服务器。服务不可用意味着应用程序池关闭。它甚至没有达到执行代码的程度。