Hello Felix,
From your description, you're calling an ASP.NET webservice that calls a
SQL stored procedure in SQL 2000 db. However, since the stored procedure
takes long time to run, you're getting timeout error at client-side proxy,
correct?
Based on my experience, for webservice call with database command
execution, there are three timeout settings you can take care:
1. The "executionTimeout" setting in ASP.NET application's <httpRuntime>
web.config element. This will control the server-side ASP.NET worker
thread's processing timeout period:
#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx
BTW, to make sure this setting work, you need to set the <compilation
debug="xxx" /> to false, because under debug setting, it will always use a
fixed timeout period.
2. The .net webservice client proxy also has a timeout which dervied from
the "WebClientProtocol" class:
#WebClientProtocol.Timeout Property
http://msdn2.microsoft.com/en-us/lib...rotocols.webcl
ientprotocol.timeout.aspx
3. If you're using SqlCommand or other command object to execute database
query, it also has a CommandTimeout property which you can control the
timeout period for waiting the execution command to finish:
#SqlCommand.CommandTimeout Property
http://msdn2.microsoft.com/en-gb/lib....sqlcommand.co
mmandtimeout(VS.80).aspx
Please have a look at the above settings. If there is any other questions,
please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.