We're starting to migrate our flagship application from ASP.NET Webforms to ASP.NET MVC. Since it's pretty much a rewrite, we're trying to get as many good new features in as possible. One of these is the newfangled async
. We're trying to make all the controllers and actions async
(where it makes sense, of course) in hopes to get a better performance.
However the problem I've run into is that Response.Redirect
and even Server.Transfer
methods simply hang the request. It looks like something deadlocks somewhere.
This is a pity, because we're pretty used to the Response.Redirect
method, which aborts everything you're doing and just redirects the entire request. Pretty handy, at least in webforms (makes the POST-REDIRECT-GET pattern easy to use).
Also, and perhaps more importantly, Response.Redirect
and Server.Transfer
is used in our Application_Error
handler, which transfers the request to an error page. I do not even know of any alternatives that could be used there.
So... is there no way how we can bring Response.Redirect
back to life?