[Mono-bugs] [Bug 51643][Nor] New - NullReferenceException in running aspx pages outside xsp

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 3 Dec 2003 06:25:55 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gkodinov@openlinksw.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=51643

--- shadow/51643	2003-12-03 06:25:54.000000000 -0500
+++ shadow/51643.tmp.30502	2003-12-03 06:25:54.000000000 -0500
@@ -0,0 +1,77 @@
+Bug#: 51643
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: RedHat 9
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gkodinov@openlinksw.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException in running aspx pages outside xsp
+
+cd to the xsp test/ dir.
+Run the attached program passing it a parameter (say) button.aspx.
+I get :
+result=[<html>
+<title>Error</title><body bgcolor="white"><h1><font color="red">Server
+error in '/' application</font></h1><hr>
+<h2><font color="maroon"><i></i></font></h2>
+<b>Description: </b>Error processing request.
+<p>
+<b>Error Message: </b>
+<p>
+<b>Stack Trace: </b><table summary="Stack Trace" width="100%" bgcolor="#ffffc">
+<tr><td><code><pre>
+System.NullReferenceException: A null value was found where an object
+instance was required
+in &lt;0x00067&gt;
+System.Web.Configuration.WebConfigurationSettings:get_MachineConfigPath ()
+in &lt;0x00081&gt; System.Web.Configuration.WebDefaultConfig:Init
+(System.Web.HttpContext)
+in &lt;0x0001a&gt; System.Web.Configuration.WebConfigurationSettings:Init
+(System.Web.HttpContext)
+in &lt;0x0002a&gt; System.Web.HttpRuntime:OnFirstRequestStart
+(System.Web.HttpContext)
+in &lt;0x00097&gt; System.Web.HttpRuntime:OnFirstRequestStart
+(System.Web.HttpContext)
+in &lt;0x000e4&gt; System.Web.HttpRuntime:InternalExecuteRequest
+(System.Web.HttpWorkerRequest)
+</pre></code>
+</td></tr>
+</table>
+<p>
+<hr>
+</body>
+</html>
+<!--
+System.Web.HttpException:  ---&gt; System.NullReferenceException: A null
+value was found where an object instance was required
+in &lt;0x00067&gt;
+System.Web.Configuration.WebConfigurationSettings:get_MachineConfigPath ()
+in &lt;0x00081&gt; System.Web.Configuration.WebDefaultConfig:Init
+(System.Web.HttpContext)
+in &lt;0x0001a&gt; System.Web.Configuration.WebConfigurationSettings:Init
+(System.Web.HttpContext)
+in &lt;0x0002a&gt; System.Web.HttpRuntime:OnFirstRequestStart
+(System.Web.HttpContext)
+in &lt;0x00097&gt; System.Web.HttpRuntime:OnFirstRequestStart
+(System.Web.HttpContext)
+in &lt;0x000e4&gt; System.Web.HttpRuntime:InternalExecuteRequest
+(System.Web.HttpWorkerRequest)
+--- End of inner exception stack trace ---
+
+
+-->
+]
+
+The xsp doesn't exhibit that as it initializes trace listeners witch calls
+GetConfig() that initializes the config variable in that class.
+
+Find attached a proposed patch.