Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SessionState Server Error
Message
 
To
17/09/2003 11:52:31
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00829936
Message ID:
00830129
Views:
23
Mindy,

Make sure you are not trying to access Session in the Global.asax.vb file. This was a change made in your project that Patty and Deb already made. The change related to Remoting that was implemented. There should be no custom code in the Global.asax.vb file.

>I receive the following error at the runtime of my project when it tries to cast a string variable into session in the .vb code behind file.....
>
>"Session State can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive."
>
>The enableSessionState property for the main page of the project is set to true. EnableSessionState = "true" in the HTML code as well. There are, however, about 5 .aspx files within this project. Where else do I need to set SessionState = "true"?? Thanks in advance, again!
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform