English 中文(简体)
超时过期错误 -- -- 不是 sql 服务器超时
原标题:Timeout expired error -- NOT a sql server timeout

我在客户网站(ASP.NET 2. 0 应用程序)上设置了一个计划,将任何例外(ASP.NET 2. 0 应用程序)发电子邮件给我。 几乎每个晚上(通常是晚上)我都会犯以下错误:

Error: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Stack Trace:
   at carart.products.Page_Error(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.TemplateControl.OnError(EventArgs e)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.products_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

最后一个位置是 Page_Error, 因为我有一个 Page_Error 处理器, 将它重定向到错误. aspx 页面, 并向用户显示一条消息。 在它进行重定向之前, 它会发送详细描述错误的电子邮件 。

我实在不知道我的代码在什么时间点 这失败了, 但我假设它甚至不能到达Page_Load, 因为它没有出现在 堆叠的痕迹中。

我每晚至少得到3到4个, 但有时白天也是如此, 有时它会干扰客户结账和其他对我客户业务至关重要的事情。

我该怎么调试这个? 我该告诉它要等多久才能连接到服务器吗?

问题回答

嗯,你也许想进一步调查为什么超时发生的原因,但为了增加超时(你最好将此设定为特定页面),你可以在网页上这样做。 config:

<location path="somefile.aspx">
    <system.web>
            <httpRuntime executionTimeout="180"/>
    </system.web>
</location>




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签