TempData Error in ASP .NET MVC2

Posted by Mauro on Stack Overflow See other posts from Stack Overflow or by Mauro
Published on 2010-06-18T09:08:19Z Indexed on 2010/06/18 9:13 UTC
Read the original article Hit count: 661

Filed under:
|

Hi, I'm looking for a description of the reasons why this error is generated and what are the possible fixes to it.

In my ASP.NET MVC2 controller I just added a TempData data passing.

Server Error in '/' Application.

The SessionStateTempDataProvider class requires session state to be enabled.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: The SessionStateTempDataProvider class requires session state to be enabled.

© Stack Overflow or respective owner

Related posts about tempdata

Related posts about asp.net-mvc2