[Mono-bugs] [Bug 500152] New: MVC gives "not found" error when view cannot be compiled.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 1 14:04:14 EDT 2009


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


           Summary: MVC gives "not found" error when view cannot be
                    compiled.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: mhutchinson at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


ASP.NET MVC gives a "not found" error when the view cannot be compiled. This
masks the true errors.

To reproduce, take an MVC site, and add invalid syntax to one of the views,
then access the view.

Expected results: Should display the errors from compiling the view.

Actual results: Syas that it can't find the view.

Example error:

The view 'Index' or its master could not be found. The following locations were
searched: ~/Views/Home/Index.aspx ~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx

Description: HTTP 500. Error processing request.

Stack Trace:

System.InvalidOperationException: The view 'Index' or its master could not be
found. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
  at System.Web.Mvc.ViewResult.FindView (System.Web.Mvc.ControllerContext
context) [0x00000] 
  at System.Web.Mvc.ViewResultBase.ExecuteResult
(System.Web.Mvc.ControllerContext context) [0x00000] 
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ActionResult actionResult) [0x00000] 
  at
System.Web.Mvc.ControllerActionInvoker+<InvokeActionResultWithFilters>c__AnonStoreyD.<>m__10
() [0x00000] 
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter
(IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext,
System.Func`1 continuation) [0x00000]

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