My hybrid project (web forms / MVC) works fine in my local development environment, but when I deploy (xcopy) in my test environment, I get the error message that is required for SessionState (full error is shown below).
What is strange about this error message is that the session state is set to InProc in my web.config, and the IIS7 configuration also shows this.
I am launching a classic website and have only one small section, which I am moving to MVC 1.0. And now my regular web pages default.aspx cannot come!
- don't use the TempData provider at all in MVC, so I assume the framework is for some reason, but heck, my SesionState is on ...
- My test environment runs on IIS 7 in integrated mode with my webconfig with sessionstate like InProc and works fine.
Additional information: for fun, I created a stub project that was only MVC, and deployed it in a test environment, and it works great! web.config are essentially the same, but one works and the other doesn't.
Any help is appreciated.
Error message
Server error in application "/".
SessionStateTempDataProvider , SessionState .
: -. .
: System.InvalidOperationException: SessionStateTempDataProvider SessionState.
:
-. .
:
[InvalidOperationException: SessionStateTempDataProvider , SessionState .] System.Web.Mvc.SessionStateTempDataProvider.LoadTempData(ControllerContext controllerContext) +247928 System.Web.Mvc.TempDataDictionary.Load(ControllerContext controllerContext, ITempDataProvider tempDataProvider) +30 System.Web.Mvc.Controller.ExecuteCore() +71 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +209 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 System.Web.HttpApplication.ExecuteStep( IExecutionStep, Boolean & ) +171