[Mono-bugs] [Bug 604502] HttpServerUtility.Execute() fails with ASP.Net MVC 2

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 10 18:21:29 EDT 2010



--- Comment #1 from Oskar Berggren <oskar.berggren at gmail.com> 2010-05-10 22:21:28 UTC ---
I think major because it breaks RenderAction(), which I believe is a very
important part of Asp.Net MVC 2. I don't know any workaround.

I tried putting
    if (ar.AsyncWaitHandle != null)
above the call to WaitOne(), and that resolved the issue for me.

Thinking further, isn't the idea with this style of asynchronous programming
that you are allowed to call the EndXXX() method at any time, and that it will
block if it isn't already finished? (Supperted by the "Ending an Asynchronous
Operation" section of http://msdn.microsoft.com/en-us/library/ms228963.aspx.)
In that case, just removing the call to WaitOne() should be ok.

Supposedly, HttpServerUtility should one day implement the asynchronous style
fully instead of just blocking, but it would be nice to get this fix in the

Haven't found time to write a test case. And I'm not sure how to go about in
doing so, for this case.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list