This project is read-only.

Installation Help - The view 'Index' or its master was not found or no view engine supports the searched locations

Nov 17, 2011 at 10:59 AM

I have just done the following...

1) Moved Views into a seperate project and installed VS extension which has successfully generated the .cs files. The index view has generated the correct virtual path..

 [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Home/Index.cshtml")]

2) Installed Razorgenerator.Mvc NuGet package on the webite project which created App_start code for registering the PrecompiledMvcViewEngine and added reference to new Views project.

What have I missed out as getting the following error? Any help appreciated thanks.

"The view 'Index' or its master was not found or no view engine supports the searched locations"

Nov 17, 2011 at 3:21 PM

aarrgghhh. "Installed Razorgenerator.Mvc NuGet package on the website project".. No... Install the package against the views project and all works.

Nov 17, 2011 at 5:54 PM

Yep, that's correct!