[Mono-bugs] [Bug 633756] New: mod mono not correctly compiling ascx

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 23 12:20:27 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=633756

https://bugzilla.novell.com/show_bug.cgi?id=633756#c0


           Summary: mod mono not correctly compiling ascx
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86-64
        OS/Version: UNIX Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: james.king at 4act.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---


Description of Problem:
I have a simple monodevelop web application project (attached) that contains a
Default.aspx file with a registered user control (test.ascx). 

The user control has a inner property that is a class with two public string
properties (clsItem). 

The project compiles fine, but when requested in apache (or xsp) I am getting
an object reference not set to an instance of an object error. I have compared
the code files in the tmp folder with those produced by IIS and have located
the line where my clsItem class should be instantiated and is not. 


Steps to reproduce the problem:
1. create an asp.net project
2. create a class clsItem with 2 public properties of type string
3. create a user control with a public property of type clsItem with the
PersistanceMode attribute set to InnerProperty.
4. register and add the user control and set the values for the clsItem
property in the Default.aspx file.
5. compile and run using xsp2 or mod mono


Actual Results:
HTTP 500 server error. Object Reference not set to an instance of an object.
When looking at the code for compiled default.aspx file, in the tmp folder, you
see that the objects of type clsItem never get instantiated. 

Expected Results:
the clsItem properties should be instantiated.

How often does this happen? 
Every time.

Additional Information:
I have a project in monodevelop already created if there is a place I can
attach it.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list