Bug 5448 - Razor compilation errors not reported correctly.
Summary: Razor compilation errors not reported correctly.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 2.10.x
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-06-01 01:39 UTC by gcaseres
Modified: 2012-06-01 01:39 UTC (History)
1 user (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description gcaseres 2012-06-01 01:39:14 UTC
When I have a syntax error in my razor views, I receive a "View not found" exception:

"The view '[ViewName]' or its master was not found or no view engine supports the searched locations. The following locations were searched:...."

I tried to find the problem and I detected that the real compilation error (with real feedback about the line where the error has occured) is shown in Console.Error.

The exception should be thrown by the BuildManager (System.Web.Compilation) instead of being reported in Console.Error.

I'm using Microsoft MVC 3 (System.Web.Mvc) and Mono 2.10.8.

Sorry for my bad English.

Any suggestion or workaround will be appreciated.

Note You need to log in before you can comment on or make changes to this bug.