[Mono-bugs] [Bug 536143] New: Global resources objects do not appear in web pages using explicit localization with precompiled sites

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 1 21:07:39 EDT 2009


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


           Summary: Global resources objects do not appear in web pages
                    using explicit localization with precompiled sites
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i586
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: chrisbrown76 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=316285)
 --> (http://bugzilla.novell.com/attachment.cgi?id=316285)
Source code for simple single page test case

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.2)
Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

When using explicit localization to set the text property of a label using a
default global resource object in a precompiled web site the specified resource
object does not appear in the page. The page does not display an error. Testing
with SVN head 140997.

Reproducible: Always

Steps to Reproduce:
1. Compile attached test case using aspnet_compiler.
2. Copy to Mono environment and run using xsp2 e.g xsp2 --port 8081 --address
127.0.0.1
3. Browse to http://localhost:8081/
Actual Results:  
'span' element id 'label1' is empty.

Expected Results:  
'span' element id 'label1' contains the text 'Global resource text string'

The problem seems to be occurring because in the function
System.Web.Compilation.DefaultResourceProvider.GetObject the check for the
HttpContext.AppGlobalResourcesAssembly (line 91) is true and the function
returns null (hence no text displayed and no error message).

-- 
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