【问题标题】:Increasing the timeout for .ashx增加 .ashx 的超时时间
【发布时间】:2010-11-08 15:21:19
【问题描述】:

简单的问题: 我需要增加 ashx 的超时时间。

【问题讨论】:

    标签: c# ashx


    【解决方案1】:

    你可以增加服务器超时时间:

    public void ProcessRequest(HttpContext context)
        {
            context.Server.ScriptTimeout = 3600;
            context.Response.ContentType = "text/plain";
            context.Response.Write("Hello World");
        }
    

    【讨论】:

    • 真的有用吗?它不会覆盖所有页面的脚本超时以及 web.config 中的设置吗?
    猜你喜欢
    • 2010-10-31
    • 2014-02-09
    • 1970-01-01
    • 2019-07-11
    • 2014-04-16
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    相关资源
    最近更新 更多