Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Session State Is Lost in Mobile Web Form Applications During Development


View products that this article applies to.

This article was previously published under Q310619

↑ Back to the top


Symptoms

When you browse to mobile Web Forms, you may receive the following error message if view state or session state is lost or has expired:
System.Exception: The page requires session state that is no longer available. Either the session has expired, the client did not send a valid session cookie, or the session state history size is too small. Try increasing the history size or session expiry limit.

↑ Back to the top


Cause

This problem occurs because virus scanning software performs real-time scanning while you build an application.

↑ Back to the top


Resolution

To resolve this problem, disable real-time scanning when you build the application. You can also disable real-time scanning for the application directory.

↑ Back to the top


More information

Mobile Web Forms applications store view state information in a session variable on the server. Because the view state is saved in the session, view state may expire when the server application restarts, which also restarts the session.

An application may restart for many reasons. One reason is because the virus software scans incoming and outgoing files in real time. This can disrupt the session state of your mobile Web application immediately after you build your application in Microsoft Visual Studio .NET.

↑ Back to the top


References

309337  PRB: Exceptions Occur When You Run ASP.NET Applications and Inoculan Antivirus Software

↑ Back to the top


Keywords: kbbuilder, kbcompiler, kbideproject, kbprb, KB310619

↑ Back to the top

Article Info
Article ID : 310619
Revision : 1
Created on : 6/14/2002
Published on : 6/14/2002
Exists online : False
Views : 345