Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I am making 3 more web applications in c#.Net in office. But one of the web application shows the following error.

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.

I create one separate web application and copy the necessary coding part only. Then also i get the same error message. I searched in net also but i cannot solve this issue.
Can anybody give the solution for this? Thanks in advance.

In my web application i have 5 web application forms in that one is login page. The 3 web pages works fine when i do some process on that forms, but in the remaining one form also works fine but when i click the upload button the datas upload and the message displayed in javascript coding also. After i click ok in javascript, the Session["Username"] is become null and the page redirect to login page. This is the my actual problem.
Posted
Updated 2-Jul-15 23:27pm
v2
Comments
Thanks7872 3-Jul-15 4:44am    
And which part of this error is not clear to you? It says what it means. Here are some suggestions : http://stackoverflow.com/a/14334927
Member 10556393 3-Jul-15 4:47am    
What i want to do this to solve?
Member 10556393 3-Jul-15 5:23am    
Problem not solved. I used all the steps which is in the link.

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