Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My ASP.NET web service on localhost is timing out too quickly

So here I am, trying to debug a little problem in my ASP.NET web service on localhost, and while I am stepping through it, the darned thing times out. Here I thought the default timeout value was 20 minutes. But the timeout appears to happen at 30 seconds -- I've timed it twice -- although it was 20 seconds in another timing I did.

I've tried to govern this by setting sessionState timeout to 30, in accordance with what MSDN says about HttpSessionState HERE. With this code:

<sessionState
  mode="InProc"
  cookieless="true"
  timeout="30" />

in .

MSDN says the value of the timeout is supposed to be in minutes ("Gets and sets the amount of time, in minutes..."), but it doesn't really seem to make any difference what it's set to. Machine.config does not specify any value, so it should default to 20 minutes.

I am running in IIS 7.5. I checked the properties of the ASP.NET Session State Mode Settings in IIS, and it is selected as "In process". I don't know how this affects things, if it does.

So this is a mystery to me.

like image 823
Cyberherbalist Avatar asked Nov 12 '22 21:11

Cyberherbalist


1 Answers

If your client is timing out when calling a web service take a look at-

http://msdn.microsoft.com/en-us/library/system.web.services.protocols.webclientprotocol.timeout.aspx

like image 90
M Miller Avatar answered Nov 14 '22 23:11

M Miller