posted 12/1/2008 10:14:33 AM by Vivek Thakur
Since last week we were getting this weird error when someone tried to post in our client applications forums: The session identity provided has expired or could not be found. This was a custom error which clearly meant that session has expired, but the strange thing was that every one was still logged on and after moving back and doing a refresh lets the post get through, without any error. There was also another related error which was also due to sessions not getting expired after clicking LogOut button, in the event handler of which we had clearly expired session using Session.Abandon(). Session.RemoveALL() and god knows what all! This problem took 2-3 days as we were trying to find out the reason in the code, but looked as if everything was perfect. Then accidentally we noticed that Web garden had been enabled on the application in IIS! We used this tool: IISAPP: to find what PID to trace, and we noticed this: W3WP.exe PID: 12408 AppPoolId: app.com(domain)(pool) W3WP.exe PID: 4348 AppPoolId: app.com(domain)(pool) W3WP.exe PID: 4736 AppPoolId: DefaultAppPool We have two PID's for one pool! That clearly indicated that something is wrong with the way app had been set up, and we opened IIS MMC and noticed that web garden was indeed enabled, causing session to mix up! We disabled it and the app was fine! Now all that needs to be done is to find the culprit who switched it on! In the process I also learnt about iisstate tool: iistate -p PID -d -sc -hc > iisoutput.txt This would then give me every .net temp file accessed every symbol loaded!
Vivek Thakur (Member since: 11/27/2008 11:54:25 AM) I am one of the administrators at CodeAsp.Net and I love programming, architecting solutions, code reviews, teaching and writing about ASP.NET.
View Vivek Thakur 's profile
Leave a comment
It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.
enter your email address: