[Mono-bugs] [Bug 518987] New: [Regression] Source code not shown on error in aspx page

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 2 17:44:37 EDT 2009


           Summary: [Regression] Source code not shown on error in aspx
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=302615)
 --> (http://bugzilla.novell.com/attachment.cgi?id=302615)
error.aspx - sample page showing the problem

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
Gecko/2009061118 Fedora/3.0.11-1.fc10 Firefox/3.0.11

Request an aspx with an compile-time error. You get an compilation exception
but neither line number nor source code listing.

Reproducible: Always

Steps to Reproduce:
1. save error.aspx to disk
2. start xsp2
3. request http://localhost:8080/error.aspx
Actual Results:  
System.Web.Compilation.CompilationException: CS1585: Member modifier `public'
must precede the member type and name
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters
options) [0x00000] 
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000] 
  at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind) [0x00000] 
  at System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath
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.PageParser.GetCompiledPageInstance (System.String
virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] 
  at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext
context, System.String requestType, System.String url, System.String path)
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context,
System.String url, Boolean ignoreContextHandler) [0x00000] 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context,
System.String url) [0x00000] 
  at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000] 

Expected Results:  
Compiler Error Message: CS1585: Member modifier `public' must precede the
member type and name

Source Error:

Line 49:         #line hidden
Line 50:         
Line 51:         public error_aspx() {
Line 52:             string[] dependencies;
Line 53:            
((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/error.aspx";

Source File: /tmp/js-temp-aspnet-0/b624dc79/App_Web_bfa2b42_0.cs  Lines: 51, 60

The source code is shown correctly with Mono from trunk. It's just mono-2-4
that is broken.

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