HighTechTalks DotNet Forums  

Operation time out while debugging XML web services

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Operation time out while debugging XML web services in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sriram Mallajyosula
 
Posts: n/a

Default Operation time out while debugging XML web services - 02-28-2007 , 02:22 AM






Hi,

I am consuming a XML web service from an ASP.Net 2.0 application. The The
ASP.Net application does not interact with the database directly. The XML web
service interacts with the database.

I have set breakpoints in my WebForm and my XML web service. Now I start
debugging from the ASP.Net application and at a later point I enter into the
XML web service for debugging. After I have spent some time in debugging the
web services I get an error "Operation time out". This error comes only while
debuging the XML web services. How to resolve this issue.

Should you require any further information please do not hesitate to contact
me.

Thanks in advance.

Regards,
Sriram Mallajyosula

Reply With Quote
  #2  
Old   
Manish Bafna
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 02-28-2007 , 03:08 AM






Hi,
To avoid this problem, set the timeout value for the call to the XML Web
service to infinite, as shown in this example:

Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.

references :http://msdn2.microsoft.com/en-us/lib...t2(VS.80).aspx
--
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Sriram Mallajyosula" wrote:

Quote:
Hi,

I am consuming a XML web service from an ASP.Net 2.0 application. The The
ASP.Net application does not interact with the database directly. The XML web
service interacts with the database.

I have set breakpoints in my WebForm and my XML web service. Now I start
debugging from the ASP.Net application and at a later point I enter into the
XML web service for debugging. After I have spent some time in debugging the
web services I get an error "Operation time out". This error comes only while
debuging the XML web services. How to resolve this issue.

Should you require any further information please do not hesitate to contact
me.

Thanks in advance.

Regards,
Sriram Mallajyosula

Reply With Quote
  #3  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 02-28-2007 , 04:37 AM



Hello Sriram,

Based on your scenario, the front ASP.NET application call another ASP.NET
webservice(asmx) through proxy, there are three settings here concerns the
timeout behavior.

** the httpruntime executionTimeout of the ASP.NET web application
** the webservice proxy's timeout setting(as Manish has pointed out)
** the httpruntime executionTimeout setting of the backend webservice
application

Manish has provided reference to the client proxy's timeout setting, you
can also refer to the following document for ASP.NET application's
executionTimeout setting(in <httpRuntime> configuration element):

#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

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.


Reply With Quote
  #4  
Old   
Sriram Mallajyosula
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 02-28-2007 , 09:02 AM



Hi Manish,

I will try this option and let you know. Is there any other way of doing
this. Because the object for the web service is created in almost all the web
pages which I want to avoid. Thanks in advance.

Regards,
Sriram Mallajyosula

"Manish Bafna" wrote:

Quote:
Hi,
To avoid this problem, set the timeout value for the call to the XML Web
service to infinite, as shown in this example:

Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.

references :http://msdn2.microsoft.com/en-us/lib...t2(VS.80).aspx
--
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Sriram Mallajyosula" wrote:

Hi,

I am consuming a XML web service from an ASP.Net 2.0 application. The The
ASP.Net application does not interact with the database directly. The XML web
service interacts with the database.

I have set breakpoints in my WebForm and my XML web service. Now I start
debugging from the ASP.Net application and at a later point I enter into the
XML web service for debugging. After I have spent some time in debugging the
web services I get an error "Operation time out". This error comes only while
debuging the XML web services. How to resolve this issue.

Should you require any further information please do not hesitate to contact
me.

Thanks in advance.

Regards,
Sriram Mallajyosula

Reply With Quote
  #5  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 03-01-2007 , 02:39 AM



Hello Manish,

If you have many front applications that will use this consume the
webservice(through generated proxy), you can consider move the webservice
proxy out of those front applications and put it into a separate class
library project. Thus, another front applications can simply reference the
class library project and use the shared webservice proxy. And for this
shared webservice proxy, you can do some customization on it, such as
provide a customized constructor which do some additional specific
initialization( e.g. set the Timeout period)...

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #6  
Old   
Sriram Mallajyosula
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 03-01-2007 , 08:35 AM



Hi Steven,

But here also I need to change all the web forms to refer to the class
library .
I think I will better use the one mentioned by Manish earlier (change
configuration settings in web.config).

** the httpruntime executionTimeout of the ASP.NET web application
** the webservice proxy's timeout setting(as Manish has pointed out)
** the httpruntime executionTimeout setting of the backend webservice
application

Regards,
Sriram Mallajyosula

"Steven Cheng[MSFT]" wrote:

Quote:
Hello Manish,

If you have many front applications that will use this consume the
webservice(through generated proxy), you can consider move the webservice
proxy out of those front applications and put it into a separate class
library project. Thus, another front applications can simply reference the
class library project and use the shared webservice proxy. And for this
shared webservice proxy, you can do some customization on it, such as
provide a customized constructor which do some additional specific
initialization( e.g. set the Timeout period)...

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.



Reply With Quote
  #7  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 03-01-2007 , 08:44 PM



Thanks for your reply Sriram,

Yes, as you said, the initial modification is significant if we change to
use a class library. BTW, web.config file can only help changing the
httpruntime executionTimeout, for webservcie proxy timeout, you still need
to manualy configure it in your page code(that call the webservice method)
or in webservice generated proxy's code.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #8  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: Operation time out while debugging XML web services - 03-05-2007 , 08:47 AM



Hi Sriram,

Any further progress on this issue? If there is anything else we can help,
please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.