2017-02-09 91 views
0

我花了整整一天通过堆栈和谷歌搜索阅读,但没有任何工作。我碰到的问题如下:错误连接到ASP.NET IIS7托管网站获取错误服务器错误'/'应用

我试图设置我的ASP.NET Web解决方案,曾经工作过一段时间,但之后由于某种原因,许多重新启动后,它停止工作。我有我的绑定设置为指向*为IP和端口80,外部我有本地IP映射到端口8700与我的外部主机地址映射。我可以在本地浏览我的浏览器中的本地主机,但是多数民众赞成在它。

我有我的路由器转发流量到8700的Web服务器的本地IP。我也为该ip设置了DMZ主机。完全关闭我的防火墙什么都不做。

我检查了我的应用程序池和网站,并且两个服务都在运行(当然,因为我可以打本地主机)。就像我说过的那样,它之前运行过,所以我知道基本的设置是合理的,它只是改变了以防止它现在工作。

这是我打的全部回报。任何帮助把我放在这个障碍非常感谢。就像我说过的,我花了整整一天的时间,我需要它的功能。

提前致谢!

这里是我的绑定信息,因为它目前被设定:

Type HTTP, Port 80, IP Address *; 
Type net.tcp, Binding info 808:*; 
Type net.pipe, Binding info *; 
Type net.msmq, binding info localhost; 
Type msmq.formatname, binding info localhost; 
Type HTTP, host name <host info here>, port 80, ip address <local ip>; 
Type HTTP, host name <host info here>, port 8700, ip address <local ip>. 

我知道我有一吨的绑定。默认设置被保留,我只是编辑并将最后两个添加到列表中。我80绑定本地流量击球,以及8700外部交通,因为我已经从端口上的网络获取回报外部通信80

错误问题:

Server Error in '/' Application. 

This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server 

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: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server 

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 (0x2afa): This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server] 
    System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6) +2974089 
    System.Net.Dns.GetHostEntry(String hostNameOrAddress) +8284466 
    SolutionsWeb.index.Page_Load(Object sender, EventArgs e) +56 
    System.Web.UI.Control.OnLoad(EventArgs e) +109 
    System.Web.UI.Control.LoadRecursive() +68 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0 
+1

'SolutionsWeb.index.Page_Load(Object sender,EventArgs e)'< - 正在发生的事情。您需要与我们分享相关的代码。 – mason

回答

0

此得到解决。这是在页面加载属性中的DNS抓取。从来没有想过检查源码,就像我说的那样,它曾经工作过。出于某种原因(也许是浏览器限制),它停止工作。谢谢你把我推向正确的方向梅森!