[Mono-bugs] [Bug 650695] New: System.Web.HttpNotFoundHandler missing

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 2 08:30:47 EDT 2010



           Summary: System.Web.HttpNotFoundHandler missing
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: oskar.berggren at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12

The HttpNotFoundHandler class is missing from System.Web.

A believe this class is internal, and so not part of the API in the traditional
sense. It can, however, be referenced from web.config.

Specifically, the default project template for ASP.Net MVC uses the following
snippet in the web.config within the Views folder to prevent direct access to
the views:

      <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>

When running such a solution on Mono, you get 500 Internal server error, with
the message "Failed to load httpHandler type `System.Web.HttpNotFoundHandler'".
Expected behavior is of course to instead get a 404 Not found message.

As a test case, I suggest creating an ASP.Net MVC project with Monodevelop, and
try to browse directly to a view file under the Views folder, to expose the
above error.

A patch has been provided here:

And then again here, with some discussion also:

Reproducible: Always

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