This started happening in the last few days; possibly since I installed Visual Studio 2012. It’s currently only happening on my machine (my colleagues are all still on VS 2010), but I’m hoping to uninstall VS 2012 to see if that has an affect.
Around 50% of all my web requests hang in SessionStateModule/REQUEST_AQUIRE_STATE for around 100 seconds (then the page completes successfully).
ANTS Profiler reports all the time as “Awaiting synchronisation” and gives a stack trace in some IIS thread callback (none of our code; sadly I don’t have the info to hand).
I enabled IIS Failed Request Tracing for all requests, and reloaded the same page of our app 10 times. Requests 3, 5, 7, 9 all took > 100 seconds, with the others taking < 5 seconds.
We’re using In Process sessions, so nothing is going over the network or being serialised. As far as I can tell, none of our code has been run up until the point this happens.
How can I get more information on what’s happening to debug the issue?
Possibly related:
Browser waits for ajax call to complete even after abort has been called (jQuery)
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
This is a bug in .NET 4.5; see “Issue 6” on this page:
http://support.microsoft.com/kb/2828841/en-us
Method 2
It sounds like there might be a bug in RC .NET 4.5. First I would try uninstalling. Otherwise for troubleshooting purposes, you could create your own session state module handler using the following article, perhaps you’ll be able to see what’s tripping the session module up in your application.
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.sessionstateutility.aspx#Y969
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0
