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
karthik vPosted Nov 23, 2011, 11:05 AM
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.
abdhesh mishraPosted May 27, 2011, 2:04 AM
Check in code proper and debug proper on local host.
Regards
Abdhesh
Http://www.learndotnet.in
Posted May 26, 2011, 10:29 PM
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.
karthik vPosted May 26, 2011, 9:24 PM
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...
Mahesh ChandPosted May 26, 2011, 9:00 PM
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.