[Mono-bugs] [Bug 603541] New: Server control fails to load

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 6 22:12:06 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=603541

http://bugzilla.novell.com/show_bug.cgi?id=603541#c0


           Summary: Server control fails to load
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: observer1 at hotmail.es
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=360250)
 --> (http://bugzilla.novell.com/attachment.cgi?id=360250)
Test web site for this bug

Description of Problem:
When adding an attribute to the attributes collection of a server control a
null reference exception is throw

Steps to reproduce the problem:
1. add a server side link control to a page:
<link runat="server" id="rssRel" type="application/rss+xml" rel="alternate"
title="<%$ Resources:Labels, Contact %>" />
2. in the load event add an attribute to the control:
rssRel.Attributes.Add("href", "/");


Actual Results:
Object reference not set to an instance of an object

Expected Results:
the link should have an attribute href with value /


How often does this happen? 
sometimes


Additional Information:
This happen almost always (if fails in some build it will certainly fail until
rebuild) in my full application but I can't reproduced in the test case
attached wich contains code identical to the one that fails.

Never fails in .Net

-- 
Configure bugmail: http://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