Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 17, 2008 05:12 PM by Wargrip
Jul 17, 2008 05:06 PM|LINK
Hi, In our application we disable session state but with preview 4 there is an exception raised when loading a controller:
The provider requires SessionState to be enabled.
Into the constructor of my controller but it seems the temp data attempts to load before the controller is executed (according to the stack trace).
Is there any way to disable the loading of the TempData so I don't have to re-enable session state?
Jul 17, 2008 05:12 PM|LINK
Nevermind - solved it... if anyone else has this problem, they can use the following code:
Then in the constructor of your controller:
Hope this helps someone.