繁体   English   中英

连接到ASP.NET IIS7托管网站时出错,“ /”应用程序中出现服务器错误

[英]Error connecting to ASP.NET IIS7 hosted website getting error Server Error in '/' Application

我整天都在阅读堆栈和谷歌搜索,但没有任何效果。 我遇到的问题如下:

我正在尝试设置曾经运行过的ASP.NET Web解决方案,但是由于某种原因,在经过多次重新启动后,它停止了工作。 我将绑定设置为指向IP的*,并转到端口80,在外部,我将本地ip映射到端口8700,并映射了我的外部主机地址。 我可以很好地在本地浏览器中输入localhost,但是仅此而已。

我的路由器将流量转发到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

解决了。 这归结于页面加载属性中的DNS抓取。 就像我说的那样,永远都不会想到检查源,因为它曾经有效。 由于某种原因(可能是浏览器限制),它停止工作。 感谢您向正确的方向推动梅森!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM