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.NET Web 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.NETVersion: 4.0.30319.17020 Any ideas? Thanks!
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
