Last post Aug 06, 2015 07:55 AM by sirdneo
Jul 24, 2015 02:51 AM|anandbpatil|LINK
Now when I close that popup and re click the tab i get an error saying object set to null value, and the line where it gives an error is it tries to fetch a session variable (object) where all the userdetails are stored.
So I guess the sessions info is not getting retrvied, any pointers on this. This is happening on IIS 7, windows server 2008 r2 64 bit. I have enabled 32 bit in IIS.
Our old site is on windows server 2003 r2, iis 6, we are migrating.
Jul 24, 2015 02:59 AM|XIII|LINK
when you debug your application can you check if the session is still there and holds the information you expect?
Jul 24, 2015 03:12 AM|anandbpatil|LINK
I cant debug the applications on the server. It works fine on my local machine
Jul 24, 2015 03:25 AM|XIII|LINK
I cant debug the applications on the server
You can make use of
An other way would be to response write the content of the session state (for debugging purposes, make sure you turn it off before moving to production!).
Jul 24, 2015 03:31 AM|anandbpatil|LINK
By debugging i will know its Null. but why is coming as null , my below line:
session["UserInfo"] is null , this works fine on iis 6 windows server 2003
Jul 24, 2015 03:40 AM|XIII|LINK
this works fine on iis 6 windows server 2003
In which mode does the IIS 7 app run? Integrated or Classic? Check this document for migration and session state:
Jul 24, 2015 05:22 AM|anandbpatil|LINK
I have IIS 7.5 , its running on classic mode ... Enable 32 bit applications is set to true
Jul 24, 2015 05:48 AM|XIII|LINK
did you try integrated mode already? If not then do so.
I have IIS 7.5
In your original post you stated you had IIS 7. Such details are important.
Aug 06, 2015 07:55 AM|sirdneo|LINK
Generally such behavior occurs when you are writing some file in the same folder where your application is hosted. Any change in content of the application folder causes IIS to restart and you can loose your session.