Microsoft Knowledge Base Email Alertz

KBAlertz.com: (308097) - If you use the state server mode of Session state in ASP.NET, when either the Web server or the computer that is running state server is under high stress, the following events may be logged in the Application Event log on the state server computer:...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 308097 - Last Review: February 23, 2007 - Revision: 4.3

State server logs Event ID 1072 or Event ID 1076

This article was previously published under Q308097

SYMPTOMS

If you use the state server mode of Session state in ASP.NET, when either the Web server or the computer that is running state server is under high stress, one of the following events may be logged in the Application Event log on the state server computer:
Event Type: Error
Event Source: ASP.NET 1.0.3306.0
Event Category: None
Event ID: 1072
Date: 9/12/2001
Time: 4:00:25 PM
User: N/A
Computer: ComputerName
Description:
An error occurred in while processing a request in state server. Major callstack: EndOfRequest. Error code: 0x80072746
Note The version of the Microsoft .NET Framework that is mentioned in the previous event message is a pre-release version of the .NET Framework 1.0.
Event Type: Error
Event Source: ASP.NET 1.0.3306.0
Event Category: None
Event ID: 1076
Date: 9/12/2001
Time: 4:02:05 PM
User: N/A
Computer: ComputerName
Description:
The state server has closed an expired TCP/IP connection. The IP address of the client is 127.0.0.1. The expired Read operation began at 09/12/2001 16:02:00.
Note The version of the .NET Framework that is mentioned in the previous event message is a pre-release version of the .NET Framework 1.0.
Event Type: Error
Event Source: ASP.NET 1.1.4322.0
Event Category: None
Event ID: 1078
Date: 10/6/2005
Time: 11:03:47 AM
User: N/A
Computer: ComputerName
The state server has closed an expired TCP/IP connection. The IP address of the client is 127.0.0.1. The expired Read operation began at 10/06/2005 11:03:25.

CAUSE

When you use the state server mode of Session state in ASP.NET, the ASP.NET Web server process in the Web server communicates with the state server by using WinSocket over Transmission Control Protocol/Internet Protocol (TCP/IP). By default, the Web server process sets the time-out value of all send and receive TCP/IP operations to 10 seconds. Similarly, the state server also times out all send and receive TCP/IP operations after 10 seconds.

However, if either the Web server or the state server is under very high CPU utilization (close to 100 percent), a TCP/IP operation can sometimes take more than 10 seconds and thus is cancelled before it has the chance to finish. As a result, one of the above-mentioned events is logged, and the originating client request fails. The state server logs event ID 1072 if the ASP.NET Web server process times out a TCP/IP operation. If the state server times out a TCP/IP operation, the state server logs event ID 1076.

RESOLUTION

To modify the TCP/IP operation time-out value for the ASP.NET Web server process, change the following attribute in the Machine.config file (or specify the following attribute in the Web.config file for any Web application).
        <sessionState 
            stateNetworkTimeout="10"
        />
To modify the TCP/IP operation time-out value for the state server, follow these steps:
  1. Stop the ASP.NET state server service.
  2. Click Start, click Run, type Regedt32.exe, and then click OK to start Registry Editor.
  3. Locate the following key in the registry:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters
  4. Add a DWORD value that is named SocketTimeout. Set a positive integer to represent the new TCP/IP timeout in seconds.
  5. Quit Registry Editor.
  6. Restart the ASP.NET state server service
Users who experience the problems that are mentioned in the "Symptoms" section should use these methods to increase the time-out values on the state server and on all Web servers to 20 seconds.

Note If the state server is not running when you increase the time-out values on the Web server, a client request times out after n seconds, where n equals a new timeout value, instead of the default 10 seconds.

APPLIES TO
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
Keywords: 
kbconfig kbprb kbreadme kbstate kbweb KB308097
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

anupam - anupamk NOSPAM-AT-NOSPAM renewal-iis.com Report As Irrelevant  
Written: 7/8/2005 12:48 PM
I was facing the same situation, I used to restart the iis service by command line utility iisreset and everything worked well. I implemented the solution they you wrote here and it worked fine. Thanks a lot for that... but the event id in my case was 1078, I am using .net framework 1.1 with sp-1, on win-2k server. I wonder if you could provide some details on similar asp.net runtime errors!!

soni199 - soni199 NOSPAM-AT-NOSPAM gmail.com Report As Irrelevant  
Written: 12/20/2006 7:27 AM
Well, this solution do not help. Even after increasing the stateNetworkTimeout does not help. Any ideas, please mail on soni199@gmail.com

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please