Rion Williams
Rion Williams

Reputation: 76557

Application Deadlocks within MVC using .NET 4.5 and IIS

Upon recently updating an application to .NET 4.5, I began to notice some strange behavior relating to Controllers (and their associated Actions) being "blocked" during AJAX calls from Javascript.

The issues were often inconsistent but would result if a Controller was being accessed through an asynchronous AJAX call and during this requestt another call (through AJAX or traditionally) was made.

This resulted in the original call being "blocked" and it would typically take 1-2 minutes before this "deadlock" was resolved and the actions were executed as intended.

Example Scenario

Additional Information

Attempted Solutions


Update

After consulting with several members of the ASP.NET team and a few other community contributors and determined that the issue was in fact a bug within .NET 4.5.

You can read more about the issue in this blog post that I wrote up on this same topic and the updated fix here.

Upvotes: 9

Views: 2242

Answers (1)

Blane Bunderson
Blane Bunderson

Reputation: 533

We have been having similar issues in a test and production environment. We have noticed that it happens only once .net 4.5 is installed. (Removing .net 4.5 fixes the issue.) It does not happen if you debug your application in Visual Studio Development Server or set the AppPool to classic mode. It seems to be related to IIS 7.5 and .net 4.5 with AppPool in integrated mode.

I have found other people having issues, but no definitive answer. IE double postback hangs IIS 7 in Integrated Managed pipeline mode when session is accessed

Upvotes: 5

Related Questions