[Mono-dev] AJAX Control Toolkitand System.NullReferenceException

Konstantin Triger kostat at mainsoft.com
Sun Aug 5 04:48:23 EDT 2007


Hello,

Since the error is in instantiating of the EditorAttribute, it seems to be enough for the test to write 1 single line:

new EditorAttibute(<relevant params>) //all you need is to find the problematic attribute declaration in your code.

Regards,
Konstantin Triger

> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] On Behalf Of Miguel de Icaza
> Sent: Sunday, August 05, 2007 12:10 AM
> To: Jens Wurster
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] AJAX Control Toolkitand
> System.NullReferenceException
> 
> Hello Jens,
> 
>     Do you have a self-contained test case that we could use to
> reproduce the problem?
> 
> > Hello,
> >
> >
> >
> > I am currently testing the "AJAX Control Toolkit". There are no
> > problems with most of the controls, only a couple of
> >
> > doesn't work at the moment. I want to use this Toolkit, so I am
> > anxious to fix the occurring errors. I am new to mono,
> >
> > so it's sometimes not easy to find and solve the problems. So far I
> > have fixed two issues (maybe somebody of the
> >
> > development team want to know more about this?!).
> >
> >
> >
> > Now, I am at a loss to fix the following error, can somebody help me,
> > please. =)
> >
> >
> >
> > System.NullReferenceException: Object reference not set to an instance
> > of an object
> >
> >   at System.ComponentModel.EditorAttribute..ctor (System.Type type,
> > System.Type baseType) [0x00000]
> > in /root/mono-
> svn/mcs/class/System/System.ComponentModel/EditorAttribute.cs:61
> >
> >   at <0x00000> <unknown method>
> >
> >   at (wrapper managed-to-native)
> > System.MonoCustomAttrs:GetCustomAttributesInternal
> > (System.Reflection.ICustomAttributeProvider,System.Type,bool)
> >
> >   at System.MonoCustomAttrs.GetCustomAttributesBase
> > (ICustomAttributeProvider obj, System.Type attributeType) [0x00000]
> > in /root/mono-svn/mcs/class/corlib/System/MonoCustomAttrs.cs:82
> >
> >   at System.MonoCustomAttrs.GetCustomAttributes
> > (ICustomAttributeProvider obj, System.Type attributeType, Boolean
> > inherit) [0x00012]
> > in /root/mono-svn/mcs/class/corlib/System/MonoCustomAttrs.cs:120
> >
> >   at System.MonoCustomAttrs.GetCustomAttributes
> > (ICustomAttributeProvider obj, Boolean inherit) [0x0002a]
> > in /root/mono-svn/mcs/class/corlib/System/MonoCustomAttrs.cs:242
> >
> >   at System.Reflection.MonoProperty.GetCustomAttributes (Boolean
> > inherit) [0x00000]
> > in /root/mono-svn/mcs/class/corlib/System.Reflection/MonoProperty.cs:201
> >
> >   at System.ComponentModel.ReflectionPropertyDescriptor..ctor
> > (System.Reflection.PropertyInfo info) [0x00000]
> > in /root/mono-
> svn/mcs/class/System/System.ComponentModel/ReflectionPropertyDescriptor.cs
> :57
> >
> >   at System.ComponentModel.TypeInfo.GetProperties () [0x00040]
> > in /root/mono-
> svn/mcs/class/System/System.ComponentModel/TypeDescriptor.cs:1077
> >
> >   at System.ComponentModel.TypeDescriptor.GetProperties (System.Object
> > component, Boolean noCustomTypeDesc) [0x0004f]
> > in /root/mono-
> svn/mcs/class/System/System.ComponentModel/TypeDescriptor.cs:667
> >
> >   at System.ComponentModel.TypeDescriptor.GetProperties (System.Object
> > component) [0x00000]
> > in /root/mono-
> svn/mcs/class/System/System.ComponentModel/TypeDescriptor.cs:623
> >
> >   at AjaxControlToolkit.ExtenderControlBase.CheckIfValid (Boolean
> > throwException) [0x00000]
> >
> >   at AjaxControlToolkit.ExtenderControlBase.EnsureValid () [0x00000]
> >
> >   at AjaxControlToolkit.DynamicPopulateExtenderControlBase.EnsureValid
> > () [0x00000]
> >
> >   at AjaxControlToolkit.ExtenderControlBase.GetScriptDescriptors
> > (System.Web.UI.Control targetControl) [0x00000]
> >
> >   at
> >
> System.Web.UI.ExtenderControl.System.Web.UI.IExtenderControl.GetScriptDesc
> riptors (System.Web.UI.Control targetControl) [0x00000]
> >
> >   at System.Web.UI.ScriptManager.RegisterScriptDescriptors
> > (IExtenderControl extenderControl) [0x00000]
> >
> >   at System.Web.UI.ExtenderControl.Render
> > (System.Web.UI.HtmlTextWriter writer) [0x00000]
> >
> >   at AjaxControlToolkit.ExtenderControlBase.Render
> > (System.Web.UI.HtmlTextWriter writer) [0x00000]
> >
> >   at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> > writer) [0x00048]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Control.cs:1256
> >
> >   at System.Web.UI.Control.RenderChildren
> > (System.Web.UI.HtmlTextWriter writer) [0x00073]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Control.cs:1116
> >
> >   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren
> > (System.Web.UI.HtmlTextWriter w) [0x00034]
> > in /root/mono-
> svn/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs:338
> >
> >   at System.Web.UI.HtmlControls.HtmlContainerControl.Render
> > (System.Web.UI.HtmlTextWriter writer) [0x00007]
> > in /root/mono-
> svn/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.c
> s:124
> >
> >   at System.Web.UI.HtmlControls.HtmlForm.Render
> > (System.Web.UI.HtmlTextWriter w) [0x00000]
> > in /root/mono-
> svn/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs:358
> >
> >   at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> > writer) [0x00048]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Control.cs:1256
> >
> >   at System.Web.UI.HtmlControls.HtmlForm.RenderControl
> > (System.Web.UI.HtmlTextWriter w) [0x00000]
> > in /root/mono-
> svn/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs:347
> >
> >   at System.Web.UI.Control.RenderChildren
> > (System.Web.UI.HtmlTextWriter writer) [0x00073]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Control.cs:1116
> >
> >   at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter
> > writer) [0x00000]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Control.cs:1092
> >
> >   at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer)
> > [0x0015c]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Page.cs:1001
> >
> >   at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> > writer) [0x00048]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Control.cs:1256
> >
> >   at System.Web.UI.Page.InternalProcessRequest () [0x003ec]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Page.cs:1438
> >
> >   at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
> > context) [0x00058]
> > in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Page.cs:1202
> >
> >
> >
> > Regards
> >
> > Jens
> >
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list