The SessionStateTempDataProvider requires SessionState to be enabled

前端 未结 6 1645
情歌与酒
情歌与酒 2021-01-01 00:38

My hybrid (web forms/MVC) project is working fine in my local development environment BUT when I deploy (xcopy) to my Test environment I get the error that SessionState is n

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 00:59

    Add the following entry to system.webServer/handlers

    
    

    Change path="*.mvc" to whatever extension/path you are using.

    Using runAllManagedModulesForAllRequests="true" is not a very good solution because all modules will run for every request, including static files, which can be bad for performance.

提交回复
热议问题