The SessionStateTempDataProvider class requires session state to be enabled.
I am using Umbraco Forms and after adding a Macro "Insert Form with Theme" with the form I have created with its own theme I got the following exception once I want to access where the form is:
Umbraco.Core.UmbracoApplicationBase Message=An unhandled exception occurred
System.InvalidOperationException: The SessionStateTempDataProvider class requires session state to be enabled.
at System.Web.Mvc.SessionStateTempDataProvider.SaveTempData(ControllerContext controllerContext, IDictionary2 values)
at System.Web.Mvc.Controller.PossiblySaveTempData()
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.
If I change the session state mode to "InProc" or "SQLServer" works, but it's impacting on the performance of the whole site and throwing others exceptions.
Is it mandatory the session state enabled? Can I a solve this situation without enabling the session state and keeping it in mode="Off"?
The SessionStateTempDataProvider class requires session state to be enabled.
I am using Umbraco Forms and after adding a Macro "Insert Form with Theme" with the form I have created with its own theme I got the following exception once I want to access where the form is:
Umbraco.Core.UmbracoApplicationBase Message=An unhandled exception occurred System.InvalidOperationException: The SessionStateTempDataProvider class requires session state to be enabled. at System.Web.Mvc.SessionStateTempDataProvider.SaveTempData(ControllerContext controllerContext, IDictionary
2 values) at System.Web.Mvc.Controller.PossiblySaveTempData() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.If I change the session state mode to "InProc" or "SQLServer" works, but it's impacting on the performance of the whole site and throwing others exceptions.
Is it mandatory the session state enabled? Can I a solve this situation without enabling the session state and keeping it in mode="Off"?
The default behavior of tempdata is to leverage the session for data Storage.
You can implement your own itempdataprovider as suggested here
https://www.google.com/amp/s/gregshackles.com/asp-net-mvc-do-you-know-where-your-tempdata-is/amp/
is working on a reply...