Last post Jul 17, 2008 05:12 PM by Wargrip
Jul 17, 2008 05:06 PM|Wargrip|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|Wargrip|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.