[Mono-bugs] [Bug 55978][Wis] Changed - NumberFormatInfo error running an aspx page

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 27 Jun 2004 08:57:51 -0400 (EDT)


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 tsoroka@possible.pl.

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

--- shadow/55978	2004-06-27 08:54:03.000000000 -0400
+++ shadow/55978.tmp.501	2004-06-27 08:57:51.000000000 -0400
@@ -1,10 +1,10 @@
 Bug#: 55978
 Product: Mono: Class Libraries
 Version: unspecified
-OS: unknown
+OS: All
 OS Details: 
 Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
@@ -180,6 +180,122 @@
 Works with CVS
 
 ------- Additional Comments From tsoroka@possible.pl  2004-06-27 08:54 -------
 Created an attachment (id=8368)
 this is .tgz testcase, to show that there still is a problem
 
+
+------- Additional Comments From tsoroka@possible.pl  2004-06-27 08:57 -------
+this bug is not rather connected with NumberFormatInfo.
+
+I checked it with rc 1 version - all binaries from yum fedora core 2
+repository
+
+copy code above to index.aspx file
+
+and copy it to a2 directory, then run xsp :
+
+mono /usr/bin/xsp.exe --root . --applications /app1:a2,/app2:a2
+
+first put browser on
+
+http://localhost:8080/app1
+
+it works well
+
+then put browser to:
+
+http://localhost:8080/app2
+
+it crashes with stack trace:
+
+
+ystem.NullReferenceException: Object reference not set to an instance
+of an object
+in <0x0000f> System.Int32:FindSign
+(int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
+in <0x00427> System.Int32:Parse
+(string,System.Globalization.NumberStyles,System.IFormatProvider)
+in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
+in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
+in <0x0000e> System.String:System.IConvertible.ToInt32
+(System.IFormatProvider)
+in <0x00473> System.Convert:ToType
+(object,System.Type,System.IFormatProvider)
+in <0x00069> System.Convert:ChangeType (object,System.Type)
+in <0x0020d>
+System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString
+(System.Type,string)
+in <0x000e9>
+System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField
+(System.Web.UI.ControlBuilder,System.Type,string,string,bool)
+in <0x001e3>
+System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields
+(System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
+in <0x003e0>
+System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes
+(System.Web.UI.ControlBuilder)
+in <0x0014b>
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree
+(System.Web.UI.ControlBuilder,bool,bool)
+in <0x00494>
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree
+(System.Web.UI.ControlBuilder,bool,bool)
+in <0x00494>
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree
+(System.Web.UI.ControlBuilder,bool,bool)
+in <0x00050>
+System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
+in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
+in <0x00148> System.Web.Compilation.BaseCompiler:GetCompiledType ()
+in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
+in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
+in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance
+(string,string,System.Web.HttpContext)
+in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler
+(System.Web.HttpContext,string,string,string)
+in <0x00337> System.Web.HttpApplication:CreateHttpHandler
+(System.Web.HttpContext,string,string,string)
+in <0x0011f> CreateHandlerState:Execute ()
+in <0x00084> StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+
+I also added attachment with test case
+unpack it to app1 direcotry and run xsp with command:
+
+mono /usr/bin/xsp.exe --root . --applications /app1:app1,/app2:app1
+
+
+first put browser on
+
+http://localhost:8080/app1
+
+it works well
+
+then put browser to:
+
+http://localhost:8080/app2
+
+it crashes with stack trace:
+
+System.FormatException: Error parsing 300px
+in <0x0026c> System.Web.UI.WebControls.Unit:.ctor
+(string,System.Globalization.CultureInfo,System.Web.UI.WebControls.UnitType)
+in <0x00015> System.Web.UI.WebControls.Unit:.ctor
+(string,System.Globalization.CultureInfo)
+in <0x00023> System.Web.UI.WebControls.Unit:.ctor (string)
+in <0x00032> app1.WebForm1:Page_Load (object,System.EventArgs)
+in <0x00069> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+in <0x00086> System.Web.UI.Control:OnLoad (System.EventArgs)
+in <0x00024> System.Web.UI.Control:LoadRecursive ()
+in <0x00198> System.Web.UI.Page:InternalProcessRequest ()
+in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x002eb> ExecuteHandlerState:Execute ()
+in <0x00084> StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+
+