[Mono-bugs] [Bug 74431][Nor] New - RegularExpressionValidator causes ASP.NET exception with mono 1.1.6 with .net 2.0 preview enabled

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 6 Apr 2005 00:39:13 -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 cmorgan@alum.wpi.edu.

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

--- shadow/74431	2005-04-06 00:39:13.000000000 -0400
+++ shadow/74431.tmp.3077	2005-04-06 00:39:13.000000000 -0400
@@ -0,0 +1,108 @@
+Bug#: 74431
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Debian unstable 2.6.10 kernel
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cmorgan@alum.wpi.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: RegularExpressionValidator causes ASP.NET exception with mono 1.1.6 with .net 2.0 preview enabled
+
+RegularExpressionValidator causes an ASP.NET exception under mono 1.1.6
+with .net preview enabled:
+
+Description: Error processing request.
+
+Error Message: HTTP 500.
+
+Stack Trace:
+
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in <0x00024> System.Web.UI.WebControls.Unit:ToString
+(System.Globalization.CultureInfo culture)
+in <0x0004b> System.Web.UI.WebControls.FontUnit:ToString
+(System.Globalization.CultureInfo culture)
+in <0x0009c> System.Web.UI.WebControls.FontUnitConverter:ConvertTo
+(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
+System.Object value, System.Type destinationType)
+in <0x00015> System.ComponentModel.TypeConverter:ConvertTo (System.Object
+value, System.Type destinationType)
+in <0x00a1e>
+System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString
+(System.Type type, System.String str, System.Reflection.MemberInfo member)
+in <0x000d1>
+System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField
+(System.Web.UI.ControlBuilder builder, System.Type type, System.String
+var_name, System.String att, System.Reflection.MemberInfo member, Boolean
+isDataBound)
+in <0x00378>
+System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields
+(System.Web.UI.ControlBuilder builder, System.Reflection.MemberInfo member,
+System.String id, System.String attValue)
+in <0x00340>
+System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes
+(System.Web.UI.ControlBuilder builder)
+in <0x0011f>
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean
+childrenAsProperties)
+in <0x00481>
+System.Web.Compilation.TemplateControlCompiler:CreateControlTree
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean
+childrenAsProperties)
+in <0x0003f> System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
+in <0x000d2> System.Web.Compilation.BaseCompiler:GetCompiledType ()
+in <0x00107> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x0002f> System.Web.UI.UserControlParser:CompileIntoType ()
+in <0x00033> System.Web.UI.UserControlParser:GetCompiledType (System.String
+virtualPath, System.String inputFile, System.Web.HttpContext context)
+in <0x0038b> System.Web.UI.TemplateControlParser:AddDirective
+(System.String directive, System.Collections.Hashtable atts)
+in <0x00122> System.Web.Compilation.AspGenerator:TagParsed (ILocation
+location, TagType tagtype, System.String tagid,
+System.Web.Compilation.TagAttributes attributes)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_ILocation_TagType_string_TagAttributes
+(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x00023> System.Web.Compilation.AspParser:OnTagParsed (TagType tagtype,
+System.String id, System.Web.Compilation.TagAttributes attributes)
+in <0x001a2> System.Web.Compilation.AspParser:Parse ()
+in <0x0001f> System.Web.Compilation.AspGenerator:DoParse ()
+in <0x000d9> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x0002f> System.Web.UI.PageParser:CompileIntoType ()
+in <0x00011> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
+in <0x0003b> System.Web.UI.PageParser:GetCompiledPageInstance
+(System.String virtualPath, System.String inputFile, System.Web.HttpContext
+context)
+in <0x00010> System.Web.UI.PageHandlerFactory:GetHandler
+(System.Web.HttpContext context, System.String requestType, System.String
+url, System.String path)
+in <0x00294> System.Web.HttpApplication:CreateHttpHandler
+(System.Web.HttpContext context, System.String type, System.String file,
+System.String path)
+in <0x0008f> System.Web.HttpApplication+CreateHandlerState:Execute ()
+in <0x0007c> System.Web.HttpApplication+StateMachine:ExecuteState
+(IStateHandler state, System.Boolean readysync)
+
+
+To reproduce:
+1. download login2.aspx, login2.ascx and web.config
+2. start xsp2 in the directory with the files
+3. visit the server page
+
+This bug occurs every time the page is visited.  I'd love to help debug it
+but I can't figure out where to start given that no values are displayed in
+the stack trace.  I only got lucky and figured out that the
+RegularExpressionValidator was the cause by trial an error, removing wigets
+from the page.
+
+Chris