session values lost in release mode
-
Hi, When i execute application in debug mode it works but on release mode the session values in the website is lost. I use windows server 2003 and IIS 6. It is a 5 step enrollment process whose values are carried forward across pages. It throws error "object reference not set to instance of object and points to session values" when moving across pages in release mode. Pls advise. Thanks Priya
-
Hi, When i execute application in debug mode it works but on release mode the session values in the website is lost. I use windows server 2003 and IIS 6. It is a 5 step enrollment process whose values are carried forward across pages. It throws error "object reference not set to instance of object and points to session values" when moving across pages in release mode. Pls advise. Thanks Priya
Hi, There are two things you can try. First of all before accessing the values from the Session check if the value is null and if not only asssign it. By this way you could over come the exception been throws. Secondly for your Session expiration, just increase the session time out period and see if it works. Use this code in Web.Config Note: timeout is stated in minutes Also, just check if your session is stored in memory or some where else. In case it could be stored in some where else. So if you have the tag SessionState check the mode property. If not mentioned it will be stored in memory by default. Hope it helps. Thx, Gayani
-
Hi, When i execute application in debug mode it works but on release mode the session values in the website is lost. I use windows server 2003 and IIS 6. It is a 5 step enrollment process whose values are carried forward across pages. It throws error "object reference not set to instance of object and points to session values" when moving across pages in release mode. Pls advise. Thanks Priya
Hi There are many reasons to reset the session data 1.fails of aspnet_wp or w3wp services while you are using Inproc session mode. 2. modification to Bin directory, Web.config , machine.config, global application file . 3.low memory on the server , where the server may dump the old sessions .... and in case you dont appeneds the sessionId while using cookieless sessions,a new session will assigned to the browser . I think in your case you may have made some modifications in web.config Again whenver you are reading data from any varaible that can be null for any reason make sure first check that should not null Is your problem got resolved ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog