Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# `'中的服务器错误/';应用目前还不知道这样的主机_C#_Asp.net_.net_Dns - Fatal编程技术网

C# `'中的服务器错误/';应用目前还不知道这样的主机

C# `'中的服务器错误/';应用目前还不知道这样的主机,c#,asp.net,.net,dns,C#,Asp.net,.net,Dns,我在部署在IIS中的一个网站上遇到此错误,当我从网络系统浏览时遇到此错误 其他网站运行良好 `Server Error in '/' Application. No such host is known Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more inf

我在部署在IIS中的一个网站上遇到此错误,当我从网络系统浏览时遇到此错误

其他网站运行良好

`Server Error in '/' Application.

 No such host is known

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: No such host is known

Source Error: 

An unhandled exception was generated during the execution of the current web request.     Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[SocketException (0x2af9): No such host is known]
  System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6)     +3192148
  System.Net.Dns.GetHostEntry(String hostNameOrAddress) +8777246
  _Default.Page_Load(Object sender, EventArgs e) +320
  System.Web.UI.Control.LoadRecursive() +71
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean         includeStagesAfterAsyncPoint) +3178`enter code here`

 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET        Version:4.0.30319.18055'` 

当调用堆栈跟踪和清除消息上显示的异常时,这里有一个未处理的异常

用try/catch包装这部分代码,并在系统上记录错误。如果知道dns名称对您来说至关重要,那么您需要显示一个错误页面,并提供进一步的说明