Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i've a website application developed by ASP.Net 4, i deployed it in IIS (Windows7, IIS7) i created a special pool for this application... it works fine.

The problem now, when the user falls in recycling time the application says that there's an error (object reference) which means that the process w3wp.exe changed! so when the user wants to affect an adding of new data it doesn't work (error) so he should try to log in an other time to work that... is there any solution for that?? please i'm really sucking here :)

Thank you
Posted
Updated 28-Jan-12 0:54am
v2
Comments
Amir Mahfoozi 28-Jan-12 7:39am    
If you search the exact error message by Google you will find the cause and solution.
Kenz Kenza 29-Jan-12 13:02pm    
if i found it i won't post my qst here, we all know google ^^
ZurdoDev 30-Jan-12 10:11am    
I don't fully understand your problem but it sounds like you are saying your session is timing out. When the application pool is automatically recycled it hands off the information to the other process starting up and this is such a quick process that I doubt your user is hitting it as you say "in recycling time." It likely is a session timeout but I guess we need more information. Either way, you can increase the session timeout or turn off app pool recycling.
Kenz Kenza 30-Jan-12 15:16pm    
the problem is that i can't turn of the recycling... and yes what u understood is true, it's bcz when the process starts a new when (when the recycle execute) so all sessions closed that's what i discovered, so is there any other way to save date in a variable or object like session but it doesn't have a time out or something like that?? when i deactivate the auto recycle the process still increase and that gonna cause a block for the application... so :s
ZurdoDev 30-Jan-12 15:39pm    
You can move your session into the State Server or into SQL. The Windows SDK or .Net SDK has an ASP.Net Session State Service and you can change your web.config to use the state service instead of IIS's RAM, that when when the App pool recycles your session is not lost. http://msdn.microsoft.com/en-us/library/ms972429.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900