[Mono-bugs] [Bug 397187] New: Mono do not compile site with . css files in App_Theme directory

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 4 13:04:07 EDT 2008


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


           Summary: Mono do not compile site with .css files in App_Theme
                    directory
           Product: Mono: Compilers
           Version: 1.2.0
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rull_orion at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Steps to reproduce:

1. Create simple site with following files:
 a) D:\Temp\WebSite2\web.config
-------------------------------
<?xml version="1.0"?>
<configuration>
        <appSettings/>
        <connectionStrings/>
        <system.web>
                <pages styleSheetTheme="Default"></pages>
                <compilation debug="false"></compilation>
                <authentication mode="Windows"/>
        </system.web>
</configuration>
-------------------------------
 b) D:\Temp\WebSite2\Default.aspx
-------------------------------
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"><title>Untitled Page</title></head>
<body><form id="form1" runat="server"></form></body>
</html>
-------------------------------
 c) D:\Temp\WebSite2\App_Themes\Default\StyleSheet.css - empty file

2. On shell menu select: Run XSP 2.0 Web Server Here 1.9.1
3. Run http://localhost:8088/ (default configuration on Windows installation)


Result:  
You'll see exception with stack trace:

System.Web.HttpException: 'D:\Temp\WebSite2\App_Themes\Default\StyleSheet.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.InitializeStyleSheet () [0x00000] 
  at System.Web.UI.Page.FrameworkInitialize () [0x00000] 
  at ASP.default_aspx.FrameworkInitialize () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] 
  at System.Web.HttpApplication+<>c__CompilerGenerated6.MoveNext () [0x00000] 
  at System.Web.HttpApplication.Tick () [0x00000]


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


More information about the mono-bugs mailing list