[Mono-list] ASP.NET MVC 4 on Mono 2.11.3 - View not found
Daniel Lo Nigro
lists at dan.cx
Sun Sep 16 09:21:03 UTC 2012
I had some time to try this again. It seems that while the standard MVC 4
internet template throws this error, a website built from the "Empty"
template works fine. I created a new MVC 4 application from the Empty
template, added a new view and controller, and created a controller action
to load the view. This worked fine under Mono 2.11.3.
Maybe it's something included in the standard template causing Mono to not
find views correctly. It includes things like DotNetOpenAuth for
OAuth-based login out-of-the-box. Maybe one of the libraries it has
preinstalled doesn't work fully in Mono. I'll investigate it and see what I
On Thu, Aug 23, 2012 at 10:40 AM, Daniel Lo Nigro <lists at dan.cx> wrote:
> I'm trying to get the RTM (final) version of ASP.NET MVC running on Mono
> 2.11.3 (compiled from source). The steps I've taken were:
> 1. Created new ASP.NET MVC 4 project in Visual Studio (using the
> default "Basic" template)
> 2. Added the MVC assemblies as deployable dependencies (Project menu
> -> Add Deployable Dependencies -> Ticked "ASP.NET MVC" and "ASP.NETWeb Pages with Razor Syntax")
> 3. Published a release build of the site to a temporary directory
> 4. Copied the temporary directory onto my server
> 5. Configured nginx to use Mono via FastCGI
> I'm getting an exception stating that the view could not be found (*The
> view 'Index' or its master was not found or no view engine supports the
> searched locations*). The view files do exist in the Views directory and
> the same site works on IIS 7.5 on Windows Server 2008. I'm *not *using
> precompiled views at all.
> Here's the exception details:
>> The view 'Index' or its master was not found or no view engine supports
>> the searched locations. The following locations were searched:
> Description: HTTP 500.Error processing request.
>> Details: Non-web exception. Exception origin (name of application or
>> object): System.Web.Mvc.
>> Exception stack trace:
>> at System.Web.Mvc.ViewResult.FindView (System.Web.Mvc.ControllerContext
>> context) [0x00000] in <filename unknown>:0
>> at System.Web.Mvc.ViewResultBase.ExecuteResult
>> (System.Web.Mvc.ControllerContext context) [0x00000] in <filename
>> at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult
>> (System.Web.Mvc.ControllerContext controllerContext,
>> System.Web.Mvc.ActionResult actionResult) [0x00000] in <filename unknown>:0
>> () [0x00000] in <filename unknown>:0
>> at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter
>> (IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext,
>> System.Func`1 continuation) [0x00000] in <filename unknown>:0
> Version Information: 2.11.3 (tarball Sun Aug 19 21:05:27 EST 2012);
>> ASP.NET Version: 4.0.30319.17020
> Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list