[Mono-list] ASP.NET MVC 4 on Mono 2.11.3 - View not found

Daniel Lo Nigro lists at dan.cx
Fri Sep 21 10:01:28 UTC 2012

Hi again,

I think I've narrowed this error down to the OAuth libraries included with
ASP.NET MVC 4. When I remove *Microsoft.Web.WebPages.OAuth.dll* from the
bin directory of the web application, it loads successfully. I'm guessing
that assembly is doing something odd, but looking at its source code, I
can't quite work out what.

Has anyone else gotten an ASP.NET MVC 4 project with the  "Internet
Application" working on Mono 2.11.4?

On Sun, Sep 16, 2012 at 7:21 PM, Daniel Lo Nigro <lists at dan.cx> wrote:

> 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
> can find.
> 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:
>> *System.InvalidOperationException*
>>> The view 'Index' or its master was not found or no view engine supports
>>> the searched locations. The following locations were searched:
>>> ~/Views/Home/Index.aspx
>>> ~/Views/Home/Index.ascx
>>> ~/Views/Shared/Index.aspx
>>> ~/Views/Shared/Index.ascx
>>> ~/Views/Home/Index.cshtml
>>> ~/Views/Home/Index.vbhtml
>>> ~/Views/Shared/Index.cshtml
>>> ~/Views/Shared/Index.vbhtml
>> 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
>>> unknown>:0
>>>   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult
>>> (System.Web.Mvc.ControllerContext controllerContext,
>>> System.Web.Mvc.ActionResult actionResult) [0x00000] in <filename unknown>:0
>>>   at
>>> System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17
>>> () [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?
>> Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120921/180084be/attachment.html>

More information about the Mono-list mailing list