In ASP.NET MVC, TempData use session state for storing the data values across requests. Hence, when you will disabled the session state for the controller, it will throw the exception as shown below:
How TempData is related to Session in ASP.NET MVC?
Tagged Interview Questions and Answers, MVC. Bookmark the permalink.