简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM