Hi Experts
I am having a strange issue with my web application i have developed.I have developed a web application which is executing fine on my local machine but when i run the same code in the server it gives an error regarding the session and the value cannot be null.With the session i am passing values to different pages and on the server it doesn't seem to work.Does anyone have any suggestions?
Loading

Mahesh ChandRank #1 · 393.4K pointsPosted May 26, 2011, 5:00 PM EDT
Is this an ASP.NET application? What version? Do you have Web application working (IIS running, virtual directory setup etc)? Server needs setting for the session management also.
karthik v115 pointsPosted May 26, 2011, 5:24 PM EDT
I have created a ASP.Net web application version 3.5 visual studio 2008.Yes my web application runs upto somepoint where i have not used the session objects and when i am using the session objects to get the information it gives me the message error in application .Value cannot be null.I have the virtual directory set up and the iis running as well.
Thanks for your reply...
Posted May 26, 2011, 6:29 PM EDT
In the web.config , Enable customError to get the more about the error details.
What is the session Mode ? InProc,StateServer or SQL Server ?
If it is StateServer ,make sure your ASP State server service is runnning.
If it is SQL Server, make sure your sql connection string is correct.
What is the ASP.net version in IIS and IIS version also?
Please provide more information to resolve the issue quickly.
abdhesh mishra7 pointsPosted May 26, 2011, 10:04 PM EDT
Check in code proper and debug proper on local host.
Regards
Abdhesh
Http://www.learndotnet.in
karthik v115 pointsPosted Nov 23, 2011, 6:05 AM EST
The reason is there were two web.config files in the root folder .So i had to change the path and that works fine now.