I am a software developer working on ASP.Net C# . I am facing problem in creating ASP session when my asp.net web application is deployed in ISS.
Here in detail
If i run my application through VS software the session id carrying data from Login.aspx to homePage.aspx and Logout is fine means session destroy is fine
The same thing when I deploy the Application to IIS or webhosted when i login the session is not carrying the data . If i retrive data from session it shoes "Object reference is not set to be an instance of object ". Hope session is not working i.
I am facing this problem in Crome and Opera Browser. But it s working good in Internet explorer and Firefox.
First I taught Session its self not working but later on i found that in some browser it is working and in some it s not ....
here is the code how i implemented
Session["UserID"]=TextBox1.Text;
to retrive Data
string UserID=Session["UserID"].Tostring();
so can anybody give me any suggestion or hint for this problem
arun arun
Member
2 Points
12 Posts
ASP Session Creation problem in Crome and in Opera browser
Jan 03, 2013 08:20 AM|LINK
Hello every one ,
I am a software developer working on ASP.Net C# . I am facing problem in creating ASP session when my asp.net web application is deployed in ISS.
Here in detail
If i run my application through VS software the session id carrying data from Login.aspx to homePage.aspx and Logout is fine means session destroy is fine
The same thing when I deploy the Application to IIS or webhosted when i login the session is not carrying the data . If i retrive data from session it shoes "Object reference is not set to be an instance of object ". Hope session is not working i.
I am facing this problem in Crome and Opera Browser. But it s working good in Internet explorer and Firefox.
First I taught Session its self not working but later on i found that in some browser it is working and in some it s not ....
here is the code how i implemented
Session["UserID"]=TextBox1.Text;
to retrive Data
string UserID=Session["UserID"].Tostring();
so can anybody give me any suggestion or hint for this problem
Tanks in Advance
aaa_78600
Participant
942 Points
198 Posts
Re: ASP Session Creation problem in Crome and in Opera browser
Jan 03, 2013 09:30 AM|LINK
http://www.sitefinity.com/developer-network/forums/bugs-issues/session-state-not-working-on-production-server
radamanthys
Member
228 Points
74 Posts
Re: ASP Session Creation problem in Crome and in Opera browser
Jan 03, 2013 03:11 PM|LINK
Hi arun,
We need more info about your problem.
The Webhosted IIS is a single server or is inside a webfarm? It looks like a problem with balanced request, maybe this post can help you.
http://msdn.microsoft.com/en-us/library/ms178586(v=vs.100).aspx