[Mono-dev] Controls within a control in ASP.NET
bigzee at zeenni.net
Tue Aug 26 05:45:00 EDT 2008
Petit, Marek, Thanks for the responses so far.
I (finally) got XSP2 and Mono to run in debug mode and now there are line numbers into the code files that show up on the error page. Below is what I am getting:
Server Error in '/' Application
Object reference not set to an instance of an object
Description: HTTP 500. Error processing request.
System.NullReferenceException: Object reference not set to an instance of an object
at ASP.default_aspx.__BuildControl__bctrl_4 (ComponentArt.Web.UI.DialogContent __ctrl) [0x00002] in D:\Development\ClamTrack\Website\Default.aspx:45
at ASP.default_aspx.__BuildControl_dlgError () [0x00048] in D:\Development\ClamTrack\Website\Default.aspx:41
at ASP.default_aspx.__BuildControl_form1 () [0x0002a] in D:\Development\ClamTrack\Website\Default.aspx:37
at ASP.default_aspx.__BuildControlTree (ASP.default_aspx __ctrl) [0x0003b] in D:\Development\ClamTrack\Website\Default.aspx:2
at ASP.default_aspx.FrameworkInitialize () [0x00012] in C:\Users\wzeenni\AppData\Local\Temp\wzeenni-temp-aspnet-0\13ab1697\App_Web_4d5b6eaf_3.cs:1096
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00049] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Web\System.Web.UI\Page.cs:1337
at System.Web.HttpApplication+<Pipeline>c__Iterator5.MoveNext () [0x00c8b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Web\System.Web\HttpApplication.cs:1233
at System.Web.HttpApplication.Tick () [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.Web\System.Web\HttpApplication.cs:880
Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42
Does that mean anything to anyone? In the above error that is referring to my Default.aspx page, line 37 and 41 are simply the Dialog control that I am using.
I have no clue how to read through the source code of mono for the other .cs files. If anyone can help I would REALLY appreciate it.
From: Marek Habersack [mailto:grendel at twistedcode.net]
To: Wael Zeenni [mailto:bigzee at zeenni.net]
Cc: mono-devel-list at lists.ximian.com, Petit Eric [mailto:surfzoid at gmail.com]
Sent: Mon, 25 Aug 2008 04:20:06 -0400
Subject: Re: [Mono-dev] Controls within a control in ASP.NET
On Mon, 25 Aug 2008 02:17:32 -0400
"Wael Zeenni" <bigzee at zeenni.net> wrote:
> 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 :( Zee _____
It's most likely a bug in Mono. It's hard to fix it given the information in your
previous mail, though. Could you, please, run the application with mono --debug (and
make sure that <compilation debug="true"/> is present in your web.config), then
post the backtrace together with the generated file. That will give more information
and make it easier to see what's going on.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list