Session state can only be used when enableSessionState is set to true either in a configuration

后端 未结 12 940
[愿得一人]
[愿得一人] 2020-11-29 04:44

I am working on Asp.net MVC 2 app with c# by using vs 2010.I am having below mentioned error when I run my app locally under debug mode.

Error message image is as be

12条回答
  •  长情又很酷
    2020-11-29 05:05

    Actually jessehouwing gave the solution for normal scenario.

    But in my case I have enabled 2 types of session in my web.config file

    It's like below.

    First one :

    
            
            
    
    

    Second one :

    
                
                    
                
     
    

    So in my case I have to comment Second one.B'cos that thing for the production.When I commented out second one my problem vanished.

提交回复
热议问题