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

Andrew Skiba andrews at mainsoft.com
Wed May 31 11:13:32 EDT 2006


While running in custom web hosting of NunitWeb I got a
NullReferenceException from TemplateParser.cs:118. The problem is that
HttpContext.Current is null. It's hard to reproduce in a small
standalone test, though. So I attach the stacktrace of my exception
together with the patch that fixes it. The fix changes the flow only
when HttpContext.Current is null, but probably it should set it always,
what do you guys think?

Also I found an interesting blog entry on the of HttpContext.Current
handling on dotnet:

Any idea about how to create a testcase for the flow like in my
stacktrace will be appretiated.

If no one objects, I will commit.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stacktrace.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060531/b12a89b4/attachment.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HttpApplication.patch
Type: application/octet-stream
Size: 599 bytes
Desc: HttpApplication.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060531/b12a89b4/attachment.obj 

More information about the Mono-devel-list mailing list