简体   繁体   English

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

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

I have spent the entire day reading through stack and googling, but nothing is working. 我整天都在阅读堆栈和谷歌搜索,但没有任何效果。 The issue i'm hitting is the following: 我遇到的问题如下:

I'm trying to set up my ASP.NET web solution which was working once upon a time, but after many reboots later for some reason it stopped working. 我正在尝试设置曾经运行过的ASP.NET Web解决方案,但是由于某种原因,在经过多次重新启动后,它停止了工作。 I have my bindings set up to point to * for ip and going to port 80, and externally i have the local ip mapped to port 8700 with my external host address mapped. 我将绑定设置为指向IP的*,并转到端口80,在外部,我将本地ip映射到端口8700,并映射了我的外部主机地址。 I can hit it fine entering localhost in my browser locally, but thats about it. 我可以很好地在本地浏览器中输入localhost,但是仅此而已。

I have my router forwarding traffic to 8700 to the local ip of the web server. 我的路由器将流量转发到8700到Web服务器的本地IP。 I also have DMZ hosting set up for that ip as well. 我也为该IP设置了DMZ托管。 Turning my firewall totally off does nothing. 完全关闭防火墙无济于事。

I have checked my app pool and site and both services are running (naturally as i can hit localhost). 我已经检查了我的应用程序池和站点,并且两个服务都在运行(很自然,因为我可以访问本地主机)。 Like i said, it ran before, so i know the rudimentary setup is sound, its just something has changed to prevent it from working now. 就像我说的那样,它已经运行过,所以我知道基本设置是正确的,只是有所更改以阻止它现在运行。

Here is the full return i'm hitting. 这是我所追求的全部回报。 Any help to put me over this hurdle is greatly appreciated. 非常感谢让我克服这个障碍。 Like i said i spent all day on this and i need it functional. 就像我说的那样,我整天都在此上工作,我需要它能正常运行。

Thanks in advance! 提前致谢!

Here is my binding info as it is set currently: 这是我当前设置的绑定信息:

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>.  

I know i have a ton of bindings. 我知道我有很多束缚。 The default settings were retained and i simply edited and added the last two to the list. 保留了默认设置,我简单地进行了编辑并将最后两个添加到列表中。 I bind 80 for local traffic hitting, and 8700 for external traffic as i had issues getting external communication from port 80. 我将80绑定为本地流量,将8700绑定为外部流量,因为从端口80获取外部通信时遇到问题。

Error on web return: 网站返回错误:

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

This was resolved. 解决了。 It was down to a DNS grab in the page load properties. 这归结于页面加载属性中的DNS抓取。 Would have never thought of checking source as, like i said, it once worked. 就像我说的那样,永远都不会想到检查源,因为它曾经有效。 For some reason (perhaps browser restrictions) it stopped working. 由于某种原因(可能是浏览器限制),它停止工作。 Thanks for pushing me in the right direction Mason! 感谢您向正确的方向推动梅森!

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

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