[Mono-dev] Controls within a control in ASP.NET

Wael Zeenni bigzee at zeenni.net
Mon Aug 25 02:17:32 EDT 2008

Dear Eric,  
Thanks for the response.  
I ran the ComponentArt DLL through the MoMA and everything turned out fine. There were no PInvokes and no missing Mono functionality.  
As to where the error is coming up, I know exactly where it's happening. I started a blank aspx page and placed 2 controls in it. One of them is a Dialog control and then, inside this dialog control, I placed a text box. When I ran this through IIS, it worked fine. However, when I ran it with Mono, I got the same error below.  
Realistically, I don't need to declare these controls using "new" at runtime as I am not creating them dynamically. They are already on the page. However, if this is a Mono workaround, I guess I'll have to try that. But where should I declare these controls? In the PageLoad()?  
And regarding your other solution about tracing, unfortunately, I'm not that experienced with doing this sort of stuff. I just thought that I couldn't be the only person here with this problem. I'm sure someone else must have had some project where a control is contained within another control :p  
Any ideas? I really need this to work or else it will effectively kill my web app's cross-platformness :(  

  From: Petit Eric [mailto:surfzoid at gmail.com]
To: Wael Zeenni [mailto:bigzee at zeenni.net]
Cc: mono-devel-list at lists.ximian.com
Sent: Sun, 24 Aug 2008 15:33:02 -0400
Subject: Re: [Mono-dev] Controls within a control in ASP.NET

Are you sur ComponentArt DLL doesn't use or wrap native Windows API or
registre ?
Perhap's a bug in the dll or in Mono?
Perhap's you need somewhere to declare an object with "new" ?
Try to add "try .. catch" block with console.writeline(ex.message +
environment.newline + ex.stackstraces) like this you will see the line
number of the code where the problem is, if it is in your code of
If you have compiled Mono from SVN or dailly tarball you shoul see
also the line number in the Mono source code (helpfull)

Le 24 août 2008 21:03, Wael Zeenni <bigzee at zeenni.net> a écrit :
> Hey all,
> I'm currently using ASP.NET controls from ComponentArt for my ASP.NET
> applications since the ComponentArt DLL is fully compatible with Mono
> (except for one function).
> Now, everything works fine in my apps using the ComponentArt controls (such
> as treeviews, buttons, etc.) but now the problem is this:
> One of the ComponentArt controls is a Dialog Box control that encapsulates
> other controls within it (like buttons, tables, text boxes, etc.) The minute
> I add a dialog control to my page and then put some other controls inside
> it, I start getting the following error:
> --------------
> Object reference not set to an instance of an object
> Description: HTTP 500. Error processing request.
> Stack Trace:
> System.NullReferenceException: Object reference not set to an instance of an
> object
> at ASP.default_aspx.__BuildControl__bctrl_4
> (ComponentArt.Web.UI.DialogContent __ctrl) [0x00000]
> at ASP.default_aspx.__BuildControl_dlgError () [0x00000]
> at ASP.default_aspx.__BuildControl_form1 () [0x00000]
> at ASP.default_aspx.__BuildControlTree (ASP.default_aspx __ctrl) [0x00000]
> at ASP.default_aspx.FrameworkInitialize () [0x00000]
> at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
> [0x00000]
> at System.Web.HttpApplication+<Pipeline>c__Iterator5.MoveNext () [0x00000]
> at System.Web.HttpApplication.Tick () [0x00000]
> Version information: Mono Version: 2.0.50727.42; ASP.NET Version:
> 2.0.50727.42
> --------------
> Now, it obviously works with Windows just fine, but when I tested it in XSP2
> (Mono v2.0 Preview) or on my Linux box (OpenSUSE with Mono 1.9.1) I get the
> errors above. I'm not sure where to go from here.
> Any ideas? Or are there any workarounds? Any help would be great!
> Thanks all.
> Zee.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



Small Eric Quotations of the days:
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.

Few people are done for independence, it is the privilege of the powerful ones.

No key was wounded during the drafting of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080825/82e68704/attachment.html 

More information about the Mono-devel-list mailing list