连接到ASP.NET IIS7托管网站时出错在' /'中出现错误服务器错误应用

时间:2017-02-09 21:36:15

标签: asp.net sockets dns iis-7 webserver

我花了整整一天阅读堆栈和谷歌搜索,但没有任何工作。我遇到的问题如下:

我正在尝试设置我的ASP.NET网络解决方案,该解决方案曾经使用过一次,但经过多次重启后,由于某种原因它停止了工作。我将绑定设置为指向*表示IP并转到端口80,外部我将本地IP映射到端口8700并映射了外部主机地址。我可以在我的浏览器本地输入localhost,但这就是它。

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

我已经检查了我的应用程序池和站点,并且两个服务都在运行(当然我可以点击localhost)。就像我说的,它之前运行过,所以我知道基本设置是合理的,它只是改变了一些东西以防止它现在工作。

这是我击中的完整回报。非常感谢任何有助于我超越这一障碍的帮助。就像我说的那样,我整天都花在这上面,我需要它的功能。

提前致谢!

这是我目前设置的绑定信息:

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 个答案:

答案 0 :(得分:0)

这已经解决了。它归结为页面加载属性中的DNS抓取。从来没有想过检查源,就像我说的,它曾经工作过。出于某种原因(可能是浏览器限制)它停止了工作。谢谢你让我朝着正确的方向推进梅森!