[Mono-dev] [patch] System.Web.HttpApplication.InitOnce

Andrew Skiba andrews at mainsoft.com
Mon Jun 5 08:13:24 EDT 2006


> Don't commit. It's a hack that fixes the problem for you, but 
> we don't know why that happens.
> 

That happens because HttpContext.Current is set in
HttpRuntime.RealProcessRequest, and when HttpApplication.Start runs in a
different thread, HttpContext.Current is null. I explained it in more
details here: http://bugzilla.ximian.com/show_bug.cgi?id=78583 To
reproduce the bug cd to System.Web/Test/standalone/hosting/test1 and
make run-test.

Andrew.



More information about the Mono-devel-list mailing list