[Mono-aspnet-list] MVC 3 App Cannot Find Template

Daniel J. Summers daniel.summers.2415 at gmail.com
Mon Mar 14 01:33:17 EDT 2011

I'm developing an ASP MVC 3 app in VS2010, then using the "publish" command
to put the finished website onto my Linux machine for testing.  The site
runs fine in the ASP.NET Development Server, but after adding some libraries
that weren't there (System.Web.Helpers, System.Web.Mvc (v3), and
System.Web.WebPages, the DLL with Razor in it), I got to this point, but I'm
unsure what to do next.  The site loads, connects to the database, and goes
through all the necessary motions to render the page.  But, when it tries to
render the home page, the following error occurs:

System.InvalidOperationException: The view 'Index' or its master was
not found or no view engine supports the searched locations. The
following locations were searched:
  at System.Web.Mvc.ViewResult.FindView [snip]

~/Views/Home/Index.cshtml is the file that's there.  Below is the Apache
configuration (note MONO_IOMAP is set to "all", so it's not a case issue;
not shown is the location directive, which pretty much just sends everything
to Mono):

MonoServerPath    vpr.yyy  "/opt/mono-2.10/bin/mod-mono-server4"
MonoDebug         vpr.yyy  true
MonoSetEnv        vpr.yyy
MonoApplications  vpr.yyy  "/:/var/www/dev/vpr"

And, a directory listing of /var/www/dev/vpr (xxx is my user ID):

xxx at yyy:/var/www/dev/vpr$ ls -alh Views/Home/Index.cshtml
-rw-r--r-- 1 xxx xxx 1.2K 2011-03-13 21:56 Views/Home/Index.cshtml

Apache is running as www-data, though the file is world-readable, so it
should be able to find it.

What am I missing?

*Daniel J. Summers*
*Owner, DJS Consulting*
E-mail <daniel.summers.2415 at gmail.com> • Website <http://djs-consulting.com>
 • Support <http://support.djs-consulting.com> • Tech

GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110314/66a67b2c/attachment-0001.html 

More information about the Mono-aspnet-list mailing list