[Mono-bugs] [Bug 418079] New: CSS file not properly referenced in a theme

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 18 13:26:24 EDT 2008


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


           Summary: CSS file not properly referenced in a theme
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: kingherc at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Created an attachment (id=233956)
 --> (https://bugzilla.novell.com/attachment.cgi?id=233956)
Simple website with theme and css file

With Microsoft ASP.NET 2.0, when you add a .css file to a theme folder, it is
automatically linked in the page that uses the theme. I believe Mono is trying
to do the same, but gets stuck with the following error:

Description: HTTP 500. Error processing request.

Stack Trace:

System.Web.HttpException:
'C:\InternetDownloaded\IIS\khercweb\App_Themes\BasicTheme\BasicTheme.css' is
not a valid virtual path.
  at System.Web.HttpRequest.MapPath (System.String virtualPath, System.String
baseVirtualDir, Boolean allowCrossAppMapping) [0x00000] 
  at System.Web.HttpRequest.MapPath (System.String virtualPath) [0x00000] 
  at System.Web.Compilation.BuildManager.AddToCache (System.String virtualPath,
System.Web.Compilation.BuildProvider bp) [0x00000] 
  at System.Web.Compilation.BuildManager.BuildAssembly (System.String
virtualPath) [0x00000] 
  at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x00000] 
  at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x00000] 
  at System.Web.UI.Page.InitializeTheme () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] 

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

So, I guess the problem is that the real physical path of the .css file is
passed to MapPath instead of a virtual path. Note: It works on Microsoft .NET.


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