【发布时间】:2014-08-22 09:18:39
【问题描述】:
我有一个 ASPX 页面,它在预先存在的 Weather 网站上的 html 表格中填充了一个单元格。 这个 aspx 页面读取一个 xml 文件并被 IFRAMED 放入表格单元格中。它需要每 10 秒刷新一次才能获得最新的风速和风向。 不幸的是,该应用程序遇到了超时异常(我认为 - 如事件日志中所述)。
这是会话超时吗?我已将 IIS 中的应用程序池和网站调整为在 24 小时(1440 分钟)内超时。这不是问题,因为天气应用程序仅在我们的 Intranet 内部使用,并且仅由少数 (3-6) 个并发用户使用。
可能是什么原因?
这里是事件日志异常:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 7/1/2014
Time: 1:22:08 PM
User: N/A
Computer: mydomain.local
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/1/2014 1:22:08 PM
Event time (UTC): 7/1/2014 5:22:08 PM
Event ID: 5bf8561bd03c44cfae09560f02a4a495
Event sequence: 168
Event occurrence: 6
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/BMBWind-9-130487080560811444
Trust level: Full
Application Virtual Path: /BMBWind
Application Path: C:\inetpub\wwwroot\BMBWind\
Machine name: xxxx
Process information:
Process ID: 7220
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: WebException
Exception message: The operation has timed out
Request information:
Request URL: default.aspx
Request path: /BMBWind/default.aspx
User host address: 1.1.1.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 3
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at _Default.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
【问题讨论】:
标签: asp.net exception web timeout