473,473 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

error: The operation has timed-out (executionTimeout?)

I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings in
various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The app
calls an asp.Net web service to retrieve the report. Both the web site and
the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for both
the site and the web service, and I have also modified the executionTimeout
setting in machine.config. In all cases the value is set to 300 (seconds).

..Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release", and
not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
.....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
.....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>
Apr 13 '06 #1
10 19107
Hi Jim,

Can you provide the error message you're getting?
It could be a timeout from your database, database connection, or
command object.

HTH,

Chris

Apr 13 '06 #2
the webservice call can also timeout. you need to set its timeout also.

-- bruce (sqlwork.com)

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings
in
various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The app
calls an asp.Net web service to retrieve the report. Both the web site
and
the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for both
the site and the web service, and I have also modified the
executionTimeout
setting in machine.config. In all cases the value is set to 300
(seconds).

.Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release", and
not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>

Apr 13 '06 #3
The operation has timed-out.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.WebException: The operation has timed-out.

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The operation has timed-out.]
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request) +58

System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques
t request) +5
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) +183
ReportDistribution.CrystalWeb.crystal.GetReport(St ring strReportName,
String strLogin, String strPassword, String strDatabase, String strServer,
String[] colParams, String[] colValues, String strReport, String strType)
+173
ReportDistribution.RunReport.Button1_Click(Object sender, EventArgs e)
+229
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

"Chris Fulstow" <ch**********@hotmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi Jim,

Can you provide the error message you're getting?
It could be a timeout from your database, database connection, or
command object.

HTH,

Chris

Apr 13 '06 #4
I set the timeout on the machine.config, and the web.config for both the web
site and the web service that it is calling.

And I restarted IIS, and then rebooted when that didn't work.

Still, the request times out after 90 seconds.

Any ideas?

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote
in message news:%2****************@TK2MSFTNGP05.phx.gbl...
the webservice call can also timeout. you need to set its timeout also.

-- bruce (sqlwork.com)

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings
in
various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The app calls an asp.Net web service to retrieve the report. Both the web site
and
the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for both the site and the web service, and I have also modified the
executionTimeout
setting in machine.config. In all cases the value is set to 300
(seconds).

.Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release", and not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>


Apr 13 '06 #5
Are you saying I need to set the web service timeout in the calling
application?

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:e5**************@TK2MSFTNGP03.phx.gbl...
I set the timeout on the machine.config, and the web.config for both the web site and the web service that it is calling.

And I restarted IIS, and then rebooted when that didn't work.

Still, the request times out after 90 seconds.

Any ideas?

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
the webservice call can also timeout. you need to set its timeout also.

-- bruce (sqlwork.com)

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
I am having a problem with my web page timng out while retrieving a long runnign report (90-120 seconds. I have tried modifying several settings in
various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The app calls an asp.Net web service to retrieve the report. Both the web site and
the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for both the site and the web service, and I have also modified the
executionTimeout
setting in machine.config. In all cases the value is set to 300
(seconds).

.Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release", and not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>



Apr 13 '06 #6
You need Command.TimeOut, not connection or Server.Timeout

Jeff
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote
in message news:%2****************@TK2MSFTNGP05.phx.gbl...
the webservice call can also timeout. you need to set its timeout also.

-- bruce (sqlwork.com)

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings
in
various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The
app
calls an asp.Net web service to retrieve the report. Both the web site
and
the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for
both
the site and the web service, and I have also modified the
executionTimeout
setting in machine.config. In all cases the value is set to 300
(seconds).

.Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release",
and
not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>


Apr 13 '06 #7
Isn't Command.Timeout for database connections? I am dealing with Crystal
reports DLLs that run reports and return a file to the web service, which
returns them to my web app. The database connections do not appear to be a
problem, although I am nto ruling anythign at just yet.

I have set my Webservice.Timeout=300000 (milliseconds I think, since 300
timed out instantly) in the code that calls the web service, and now I am
getting an error at 5 minutes instead of 90 seconds. From what can see it
seems to be working as I want it, but more testing is needed. I am
purposely sending bad criteria to make the report run for a longer period,
so I can see what effect the parameters have.

Once I figure out just what makes the difference I'll post the solution
here. In the mean time, any additional advice is apreciated.
"Jeff Dillon" <je********@hotmail.com> wrote in message
news:Oi**************@TK2MSFTNGP05.phx.gbl...
You need Command.TimeOut, not connection or Server.Timeout

Jeff
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
the webservice call can also timeout. you need to set its timeout also.

-- bruce (sqlwork.com)

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings in
various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The
app
calls an asp.Net web service to retrieve the report. Both the web site
and
the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for
both
the site and the web service, and I have also modified the
executionTimeout
setting in machine.config. In all cases the value is set to 300
(seconds).

.Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release",
and
not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>



Apr 13 '06 #8
Um, no connection timeout is for database connections timeout. Command
timeout is for sql command timouts, which is what you are experiencing.

When you run the query in SQL Analyzer, how long does it take? Of course the
the shortest timeout, the Webservice timeout or command timeout, will happen
first. If your command takes longer than the webservice timeout, you'll get
that error. Database connections always happen very fast, it's the queries
(commands) that can take awhile.

First, you need to fix your SQL!

Jeff

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:e9**************@TK2MSFTNGP05.phx.gbl...
Isn't Command.Timeout for database connections? I am dealing with Crystal
reports DLLs that run reports and return a file to the web service, which
returns them to my web app. The database connections do not appear to be
a
problem, although I am nto ruling anythign at just yet.

I have set my Webservice.Timeout=300000 (milliseconds I think, since 300
timed out instantly) in the code that calls the web service, and now I am
getting an error at 5 minutes instead of 90 seconds. From what can see
it
seems to be working as I want it, but more testing is needed. I am
purposely sending bad criteria to make the report run for a longer period,
so I can see what effect the parameters have.

Once I figure out just what makes the difference I'll post the solution
here. In the mean time, any additional advice is apreciated.
"Jeff Dillon" <je********@hotmail.com> wrote in message
news:Oi**************@TK2MSFTNGP05.phx.gbl...
You need Command.TimeOut, not connection or Server.Timeout

Jeff
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>

wrote
in message news:%2****************@TK2MSFTNGP05.phx.gbl...
> the webservice call can also timeout. you need to set its timeout also.
>
> -- bruce (sqlwork.com)
>
>
>
> "Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
> news:Ot**************@TK2MSFTNGP05.phx.gbl...
>>I am having a problem with my web page timng out while retrieving a
>>long
>> runnign report (90-120 seconds. I have tried modifying several settings >> in
>> various places and cannot get it to run for more than 90 seconds.
>>
>> I am running VS.Net and the app is ASP.Net, written using VB.Net. The
>> app
>> calls an asp.Net web service to retrieve the report. Both the web
>> site
>> and
>> the web service are running locally on my PC.
>>
>> I have tried modifying the executionTimeout setting in Web.Config for
>> both
>> the site and the web service, and I have also modified the
>> executionTimeout
>> setting in machine.config. In all cases the value is set to 300
>> (seconds).
>>
>> .Net Version is 1.1.4322.2032.
>>
>> I also tried modifying my web site to timeout in 300 seconds using
>> Server.ScriptTimeout = 300
>> with no effect.
>>
>> Both the web site and the web service have been compiled as "release",
>> and
>> not as "debug".
>>
>> If anyone can provide any suggestions, I would very much apreciate it.
>>
>> Below are sections of each of my config files.
>>
>> System.web settings for My web site web.config
>> <system.web>
>> <compilation defaultLanguage="vb" debug="false" />
>> <httpRuntime executionTimeout="300" maxRequestLength="4096"
>> useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
>> minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
>> enableVersionHeader="true"/>
>> ....
>> </system.web>
>>
>> System.web settings for My web service web.config
>> <system.web>
>> <compilation defaultLanguage="vb" debug="false" />
>> <httpRuntime executionTimeout="300" maxRequestLength="4096"
>> useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
>> minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
>> enableVersionHeader="true"/>
>> ....
>> </system.web>
>>
>> System.web settings from machine.config
>> <system.web>
>> <httpRuntime executionTimeout="300" maxRequestLength="4096"
>> useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
>> minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
>> enableVersionHeader="true"/>
>> <compilation debug="false" explicit="true" defaultLanguage="vb">
>> ...
>> </system.web>
>>
>>
>
>



Apr 13 '06 #9
Thanks to Bruce, I think I have resolved the issue. Essentially, I needed
three settings.

First, I needed to set the executionTimeout in the web.config for my web
app, as well as the web service it was calling. I think I could also have
changed only the machine.config since these are on the same box, but that is
undesirable since it would affect every web app on the box.

Here is the setting I added to each web.config file, within the system.web
section:

<httpRuntime executionTimeout="300" />

I also had to add a line to my code where I call the web service, since
there is a timeout on the client side (in this case my web app is the client
of the web service) of this as well.

MyRepWeb is the name of my web service object. I set this just after
instantiating the object, just before calling the method to retrieve the
report file.

MyRepWeb.Timeout = 3000000

Thanks all for the suggestions.

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings in various places and cannot get it to run for more than 90 seconds.

I am running VS.Net and the app is ASP.Net, written using VB.Net. The app
calls an asp.Net web service to retrieve the report. Both the web site and the web service are running locally on my PC.

I have tried modifying the executionTimeout setting in Web.Config for both
the site and the web service, and I have also modified the executionTimeout setting in machine.config. In all cases the value is set to 300 (seconds).
.Net Version is 1.1.4322.2032.

I also tried modifying my web site to timeout in 300 seconds using
Server.ScriptTimeout = 300
with no effect.

Both the web site and the web service have been compiled as "release", and
not as "debug".

If anyone can provide any suggestions, I would very much apreciate it.

Below are sections of each of my config files.

System.web settings for My web site web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings for My web service web.config
<system.web>
<compilation defaultLanguage="vb" debug="false" />
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
....
</system.web>

System.web settings from machine.config
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>
<compilation debug="false" explicit="true" defaultLanguage="vb">
...
</system.web>


Apr 13 '06 #10
Actually, there was no SQL timeout issue in this case, and when I said
connection, I meant the SQL command whcih runs over the connection. The web
service was calling Crystal Reports behind the scenes, and it is Crystal
that is taking so long. The actual SQL executes in seconds, but it takes
over a minute to send all of the data (400,000 plus rows) across the
network, then crystal has apply formulas and summarize the results. I am
pretty sure I can rewrite this report to return results much faster (under
30 seconds anyway) by doing some of the summarization on the database.
However, since I know we will end up with reports that take over 90 seconds
to run, I needed to insure that we can accomodate them, in addition to
fixing the performance of this particular report. By the way, it is a
report written by a business user, not by me, but it will be made more
efficient before it hits production. After it is rewritten those 400,000
rows should be summarized into 2,000 rows with about the same execution
time. but saving netowrk traffic, memory, and CPU cycles on the crystal end.

Since Crystal manages the SQL connections on its own, I didn't have to worry
abotu that at all, but I did have to worry about the web service which was
quiting the request before crystal completed the report. I could actually
watch the report files get saved to disk seconds after the page timed out.

In the end, I had to set executionTimeout in both my web site and the web
service which it was calling, as well as set the webservice.timeout in my
code before I called it. I had problems with my web site timing out, the
web service timing out, then my web site timing out it's own request to the
web service. Now I am able to run a report that completes in under 5
minutes (yes, still a long time, I know), and I know what I can do in the
future if I run into this problem again.

Anyway, thanks for the suggestions. Although the solution was (in part)
different then you suggested, your advice was right on the money.

"Jeff Dillon" <je********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Um, no connection timeout is for database connections timeout. Command
timeout is for sql command timouts, which is what you are experiencing.

When you run the query in SQL Analyzer, how long does it take? Of course the the shortest timeout, the Webservice timeout or command timeout, will happen first. If your command takes longer than the webservice timeout, you'll get that error. Database connections always happen very fast, it's the queries
(commands) that can take awhile.

First, you need to fix your SQL!

Jeff

"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:e9**************@TK2MSFTNGP05.phx.gbl...
Isn't Command.Timeout for database connections? I am dealing with Crystal reports DLLs that run reports and return a file to the web service, which returns them to my web app. The database connections do not appear to be a
problem, although I am nto ruling anythign at just yet.

I have set my Webservice.Timeout=300000 (milliseconds I think, since 300
timed out instantly) in the code that calls the web service, and now I am getting an error at 5 minutes instead of 90 seconds. From what can see
it
seems to be working as I want it, but more testing is needed. I am
purposely sending bad criteria to make the report run for a longer period, so I can see what effect the parameters have.

Once I figure out just what makes the difference I'll post the solution
here. In the mean time, any additional advice is apreciated.
"Jeff Dillon" <je********@hotmail.com> wrote in message
news:Oi**************@TK2MSFTNGP05.phx.gbl...
You need Command.TimeOut, not connection or Server.Timeout

Jeff
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>

wrote
in message news:%2****************@TK2MSFTNGP05.phx.gbl...
> the webservice call can also timeout. you need to set its timeout also. >
> -- bruce (sqlwork.com)
>
>
>
> "Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
> news:Ot**************@TK2MSFTNGP05.phx.gbl...
>>I am having a problem with my web page timng out while retrieving a
>>long
>> runnign report (90-120 seconds. I have tried modifying several

settings
>> in
>> various places and cannot get it to run for more than 90 seconds.
>>
>> I am running VS.Net and the app is ASP.Net, written using VB.Net. The >> app
>> calls an asp.Net web service to retrieve the report. Both the web
>> site
>> and
>> the web service are running locally on my PC.
>>
>> I have tried modifying the executionTimeout setting in Web.Config for >> both
>> the site and the web service, and I have also modified the
>> executionTimeout
>> setting in machine.config. In all cases the value is set to 300
>> (seconds).
>>
>> .Net Version is 1.1.4322.2032.
>>
>> I also tried modifying my web site to timeout in 300 seconds using
>> Server.ScriptTimeout = 300
>> with no effect.
>>
>> Both the web site and the web service have been compiled as "release", >> and
>> not as "debug".
>>
>> If anyone can provide any suggestions, I would very much apreciate it. >>
>> Below are sections of each of my config files.
>>
>> System.web settings for My web site web.config
>> <system.web>
>> <compilation defaultLanguage="vb" debug="false" />
>> <httpRuntime executionTimeout="300" maxRequestLength="4096"
>> useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
>> minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
>> enableVersionHeader="true"/>
>> ....
>> </system.web>
>>
>> System.web settings for My web service web.config
>> <system.web>
>> <compilation defaultLanguage="vb" debug="false" />
>> <httpRuntime executionTimeout="300" maxRequestLength="4096"
>> useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
>> minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
>> enableVersionHeader="true"/>
>> ....
>> </system.web>
>>
>> System.web settings from machine.config
>> <system.web>
>> <httpRuntime executionTimeout="300" maxRequestLength="4096"
>> useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
>> minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
>> enableVersionHeader="true"/>
>> <compilation debug="false" explicit="true" defaultLanguage="vb">
>> ...
>> </system.web>
>>
>>
>
>



Apr 13 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Khurram Ishfaq Rathor | last post by:
Hello, I'm developing a web appliation in ASP.Net. My web appliation communicates with Web Services for several operations. Everything is working fine except one operation. Web application...
1
by: Dorte | last post by:
Hi, My ASP.NET application calls a web service (in the same project) that queries a SQL server by using a data adapter to fill a dataset. The dataadapter may fill more than one dataset to build...
1
by: Manso | last post by:
Hi, I have an ASP.NET 1.1 app running on Windows XP SP2 that is requesting information from a WebService which works just fine. Another part of the app is doing a server-side post to antoher...
1
by: news.microsoft.com | last post by:
I experienced the following exception occasionally when the program downloads the image from the Web site. Who can give me some solution for it? Thanks in advance. ---------- Exception:...
1
by: Dave | last post by:
Calling an external webservice, sometimes we get "operation has timed out." the full stack trace is below (I've just replaced personal info). The webservice provider suggested it timed out trying...
3
by: JuHui | last post by:
I wrote a script to get 100 pages from a server. like below: 1:import httplib 2:conns = httplib.HTTPConnection("www.mytest.com") 3:conn.request("GET", "/") sometimes a socket error was...
0
by: Christian V | last post by:
We have a Web service hosted in IIS 6 under Windows Server 2003. The Web service handles quite a bit of requests these days and sometimes gives out the dreaded "operation has timed-out" exception....
0
by: Just D. | last post by:
How could I fix this annoying bug? I have a large solution with 29 projects, including 28 class libraries and 1 Web Application written in C#. It was working with IE6 good enough and when I was...
1
by: Pratappeddinti | last post by:
I am getting operation timed out exception when i am using webservices. What is this operation timed out exception. How can i fix this problem.
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.