Hey gang,
Here's one that's got me stumped. This is the second time it's happened to me. The first time, I figured it was just a fluke and recreated my TestForm. But, since it's happened again, it has me worried that it will happen on my real form instead of a TestForm and then I'll be up the creek without a paddle. Here's what happened:
I was in the middle of debugging my Test WebForm. I'm doing stuff with saving SessionState variables to SQL Server (although I can't say whether it's the SQL Server part of it that's problematic ... at this point I don't think so). Anyway, .NET and IIS locks up really bad , for who-knows-what-reason (probably over-worked and under-paid). Killing the VS.NET process thru Task Manager allows me to get out of it, but I can't even bring up VS.NET after that because it hangs up (or times out actually) on trying to access the WebServer. The only recourse is to reboot (I've tried stopping/restarting IIS ... doesn't help).
Anyway, once the PC has been re-booted, everything is fine ... except for that one WebForm that crashed. I just cannot run it again, no matter what I try I keep getting the following error:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in a Page directiveIt *is* set to true in the machine.config, I'm using the sessionState mode = "SQLServer" etc. in the Web.config. It works fine on any other page I start up, just not the one that crashed-and-burned. I tried putting EnableSessionState="true" in the Page directive (as the error message suggested), but it still won't work.
I'm guessing something's hosed in IIS, but I don't have a clue where to look or how to fix it. Anybody???
~~Bonnie