Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi All,

I am introducing Web Api in my project.I configured WebAPI routing and Global.asax too. When i call existing function from controller using webapi i am getting error releated to session, The error is,

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

Thanks In advance :-)

What I have tried:

I tried modifying Web.config <httpmodules> tag and <pages> tag
Updated 29-May-17 19:02pm
Bohdan Stupak 22-Jun-17 6:37am    
the same was even discussed on this resource :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900