簡體   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