Last post Aug 08, 2011 10:49 AM by alfredlok
Aug 05, 2011 03:08 AM|alfredlok|LINK
I have serveral systems which are developed with VS 2005, Dot Net Framework 2.0, with Ajax.
I have, say, Session("mySetttings") = myObject. The object may be a data table, array or just a string.
The Systems work fine in IIS 6. After migrate to IIS7.5 on windows 2008 r2 server. I found that the Session only maintain for a few pages and then it is lost. I have written some testing code and verfiy that the Session("mySettings") is nothing.
I found that if I enable the 32-bit applications in the Appilcation Pool, then it works fine. (Although I do not know the reason behind or I need to compile the system to 64 bit application but I have some 3rd party components which is 32 bit.)
I am wondering how to fix this? Since some of my clients are running on a shared hosting environment. I may not able to ask the hosting company to enable the 32 bit applications in the Application Pool.
Aug 05, 2011 02:48 PM|animeshsantoki|LINK
put this code in web.config file
i hope it will help this...
i extend session timeout as 45 minutes.
Aug 06, 2011 03:12 AM|alfredlok|LINK
Actually I tried 30 minutes but no effect. The session object lost within a few clicks. The only solution I can find out by trial and error is to set the 32 bit applications to enabled at the Application pool.
Aug 08, 2011 01:40 AM|roopeshreddy|LINK
I think your OS - Windows Server 2008 is 64-bit and hence the problem. "Enable 32-bit applications" is the solution for the problem.
If you set that option, it is affected for that Applicaion Pool only. You can create different Application for other web applications.
There is no problem with enabling that option. So you can go ahead and enable that option.
Hope it helps u...
Aug 08, 2011 02:27 AM|alfredlok|LINK
Yes. The OS is Windows 2008 R2 64 bit. Is "enable 32 bit applications" is the only solution? And is it an "official" solution? I have tried to google and do not find an official KB towards the issue.
Some of my clients are using their own server, and that is OK. But some are using shared hosting service providers, which I have limited control towards the Application pool.
For those clients who have their servers, I am now: create Another Application Pool and enable the "32 bit application".
Aug 08, 2011 08:49 AM|roopeshreddy|LINK
Yeah, the option is provided for that purpose only. You can go ahead and use it.
You can find some articles on the net if you bing properly.
Check one of the blog post by Microsoft Engineer in a blog post
Hope it helps u...
Aug 08, 2011 10:49 AM|alfredlok|LINK