Solved

Web Service Timeout while Debugging

Posted on 2014-09-15
11
434 Views
Last Modified: 2014-10-03
I'm using Visual Studio 2013 Pro with the local IIS Express web server.

When trying to step through the code to debug I keep getting a timeout error, is there anyway to lengthen or remove the timeout option?
0
Comment
Question by:BrianFord
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40324533
What kind of web service are you building? Web Api, WCF, etc.
For example in WCF service, you would want to adjust the receiveTimeout attribute of a binding elemnent.  Check timeout explanation here

Note: You should request that this question be added "Web Services and WCF" for more expert participation
0
 

Author Comment

by:BrianFord
ID: 40329321
It's a standard SOAP call to a Web API
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40334138
If is it s the client that is calling the web API service then use Timeout property .
This property defines a TimeSpan in milliseconds, after which the request times out.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

Author Comment

by:BrianFord
ID: 40345825
That's my problem, unfortunately there doesn't appear to be a 'TimeOut' property when using IIS Express ?? or if there is I can't see anywhere to set it.
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40347284
IIS Express Manager 7.5/8.0 supports timeout, you need to right click on the site hosting your web api and go to Manage Web Site -> Advanced Settings. In the property connection dialog look under Connection Limits you should see Connection Time-out property there.

Note: Please post IIS Express version and web.config file if more help required
0
 

Author Comment

by:BrianFord
ID: 40347491
The version I'm using is what was installed with Visual Studio 2013 Pro, I'm not sure where to check the version number.
When I right click on IIS Express these are the only options I see:
screenshot
Web.config endpoint entry:
 <endpoint address="http://webforms.<snip>/webFormsService.asmx"
        binding="basicHttpBinding" bindingConfiguration="ServiceSoap"
        contract="webFormsService.ServiceSoap" name="ServiceSoap" />

Open in new window

0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40349014
What OS version are you using?
IIS Express is the default web server:
http://msdn.microsoft.com/en-AU/library/58wxa9w5.aspx
but it is very limited as it does not have a UI, You may need to install proper IIS Express as it has the UI to do changes.

Once installed, for example: IN Windows 7(and up) type IIS Manager and in the open dialog go to Help->About.
0
 

Author Comment

by:BrianFord
ID: 40350551
Using Windows 8.1 Pro
0
 

Author Comment

by:BrianFord
ID: 40350564
so where can I get the 'proper' IIS Express?

I downloaded and installed IIS 8 Express but it appears that was already the version I was running, so no changes there.
0
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40351132
Yes, but you the UI (find IIS express manager) and you should be able to see the values.
Then you need to specify that your Web api project uses this ISS as per my previous post link.
0
 

Author Closing Comment

by:BrianFord
ID: 40360365
thsnks
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question