The SessionStateTempDataProvider requires SessionState to be enabled

前端 未结 6 1621
情歌与酒
情歌与酒 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条回答
  •  旧时难觅i
    2021-01-01 01:01

    I had the same problem and was of course getting the same error. Even though, I did not need the Session state for my MVC application, I was just interested in getting the application up and running so was willing to enable the session state...why not!!

    Even after adding the session state setting to my web.config file,

    ......
    

    I continued to get the same error message....very confusing!.

    I discovered the following explanation which was the definitive resolution to the issue. When running the app pool in integrated mode, you have to ensure that IIS has the session state module mapping defined.

提交回复
热议问题