The SessionStateTempDataProvider requires SessionState to be enabled

前端 未结 6 1637
情歌与酒
情歌与酒 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:51

    Google Solved: I added this attribute to the modules node in the web.config and EVERYTHING magically started working:

    It looks like I'm not alone:

    http://forums.asp.net/p/1293974/2509190.aspx

    http://www.flyvergrillen.dk/2009/03/26/being-trapped-in-iis/

    I think my pure MVC project (that worked in Test environment) was too simple and may not have forced the MVC framework to require TempData and SessionState, so that's how I'll explain it away ;-)

提交回复
热议问题