Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单的问题:我需要增加 ashx 的超时时间。
您可以只增加服务器超时:
public void ProcessRequest(HttpContext context) { context.Server.ScriptTimeout = 3600; context.Response.ContentType = "text/plain"; context.Response.Write("Hello World"); }