i have long process in ajax that make problem
i added asyncpostbacktimeout=600
to the script manager
<asp:ScriptManager AsyncPostBackTimeOut="600" runat="server" ID="SmPa开发者_Python百科ge" EnablePageMethods="true" />
in the local host its working great, but when i tested it on the server it still have the some problem
any advise ? Thanks
You might have to increase executionTimeout
in web.config otherwise the request itself is timing out.
Have a look at executionTimeout at msdn. It explains the difference between Debug=True/False and this is probably causing the difference between localhost and production.
executionTimeout Optional Int32 attribute.
Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.
This time-out applies only if the debug attribute in the compilation element is False. If the debug attribute is True, to help avoiding application shut-down while you are debugging, do not set this time-out to a large value.
The default is 110 seconds.
Add executionTimeout
to configuration/system.web/httpRuntime
in Web.Config
and let me know if it works:
<configuration>
<system.web>
<httpRuntime executionTimeout="600" />
</system.web>
</configuration>
精彩评论