Also, check the machine.config in the .NET Framework folder. The hierarchy of configurations is machine.config -> web.config -> page directives.
>Mindy,
>
>I'm pretty sure that SessionState is enabled by default. Perhaps someone turned it off in your Web.config file? Check that out ...
>
>~~Bonnie
>
>>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!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement