开发者

The operation timed out – ASP

开发者 https://www.devze.com 2023-04-10 01:39 出处:网络
I have a vanilla ASP app that runs on IIS 5.1. The below code in an ASP file causes the IIS throw the “Operation timed out” error. However despite of the error the process continues to run on the se

I have a vanilla ASP app that runs on IIS 5.1. The below code in an ASP file causes the IIS throw the “Operation timed out” error. However despite of the error the process continues to run on the server at the background and eventually completes as expected.

I increased the ASP Script timeout in IIS via both IIS MMC and the ASP file (Server.ScriptTimeout) from 90 seconds (default) to 600, 1000 and even 10000 seconds (I know the implications of very high script timeouts) but the error occurred consistently regardless of the scrip timeout set.

WebServ is a COM+ app and I observed that the process that runs inside the app takes about 80 - 90 seconds. This app does not manipulate any IIS settings internally.

Although the code in the COM+ app could be optimized, I doubt that the optimizations alone will help because the application deals with large amount of data stored in SQL Server. Hence chances are high that the app will need more than 90 seconds to complete the process as the databases grow.

Therefore can somebody please help me understand 1. Why the error “Operation timed out” occurs regardless of the ASP Script timeout set? 2. What should we do to buy more time for the ASP file to complete the process?

P.S. I did browse a number of other posts here related to this error message but unfortunately did not find anything helpful.

Thanks.

&开发者_Go百科lt;%
Server.ScriptTimeout = 10000

.... initialize the variables....

Set WebServ = CreateObject("WebServ.RunCommand")

lcResult = WebServ.Call(SessionKey, ConfigID, Program, Function, Mode, Params)

Set WebServ = Nothing

With Response
    .ContentType = "text/xml"
    .Write(lcResult)
End With
%>


Please try to increase time out in Attached application pool of the application.


What should the contents of lcResult be?

Place several response.write and response.end in your code to try to find where the timeout is happening.


I suggest to add Output Debug Strings to the COM Modules.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363362%28v=vs.85%29.aspx

you can view them with your debugger or DebugView (http://technet.microsoft.com/en-us/sysinternals/bb896647)

aswell i would wrap output debug string as a COM Module to use it from ASP.

0

精彩评论

暂无评论...
验证码 换一张
取 消