[Mono-bugs] [Bug 82448][Nor] New - AjaxControlToolkit - ModalPopupExtender - System.NullReferenceException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 15 09:25:46 EDT 2007


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 jw at zaubercenter.de.

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

--- shadow/82448	2007-08-15 09:25:46.000000000 -0400
+++ shadow/82448.tmp.13214	2007-08-15 09:25:46.000000000 -0400
@@ -0,0 +1,129 @@
+Bug#: 82448
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jw at zaubercenter.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AjaxControlToolkit - ModalPopupExtender - System.NullReferenceException
+
+I am using the AjaxControlToolkit of Microsoft. You can find the current 
+version (10618) with source code here: 
+http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?
+ReleaseId=4923
+
+Most of the controls are working fine. 
+
+If I use the "ModalPopupExtender", I get the following error message.
+
+First the sample code:
+
+   <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" 
+runat="server" 
+             TargetControlID="LinkButton1"
+             PopupControlID="Panel1"
+             BackgroundCssClass="modalBackground"
+             DropShadow="true"
+             OkControlID="OkButton"
+             OnOkScript="onOk()"
+             CancelControlID="CancelButton" />
+
+And now the very long error message:
+
+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:1251 
+  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:1251 
+  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:1091 
+  at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) 
+[0x00167] in /root/mono-
+svn/mcs/class/System.Web/System.Web.UI/Page.cs:1005 
+  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:1251 
+  at System.Web.UI.Page.InternalProcessRequest () [0x003e1] in /root/mono-
+svn/mcs/class/System.Web/System.Web.UI/Page.cs:1442 
+  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) 
+[0x00058] in /root/mono-svn/mcs/class/System.Web/System.Web.UI/Page.cs:120


More information about the mono-bugs mailing list