Operation time out while debugging XML web services

  • Thread starter Sriram Mallajyosula
  • Start date
S

Sriram Mallajyosula

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
 
S

Steven Cheng[MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.

==================================================



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

Sriram Mallajyosula

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
 
S

Steven Cheng[MSFT]

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.
 
S

Sriram Mallajyosula

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
 
S

Steven Cheng[MSFT]

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.
 
S

Steven Cheng[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top