I've got a head scratcher. In my master page I have:
if (Session.IsNewSession) ....
In two of my pages that are content pages of the master, I'm now getting an HttpException -- Session state can only be used when enableSessionState is set to true... The other 10 or so content page work fine. In no place in the application do I have EnableSessioState="false".
Even after the exception is thrown, I can navigate back to one of the other working pages, and everything seems fine and dandy -- until I attempt to load one of broken pages.
I'm at a total loss as to how to shoot this bug. Anybody have a clue as to how I can determine when SessionState is being disabled?
[Edit] The offending line of code in the Page_Load event.[/edit]



LinkBack URL
About LinkBacks

Bookmarks