Reputation: 13356
Here's the error I get:
System.InvalidOperationException: The view at '~/Views/Home/Root.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
Runs fine on local dev box. Publish to host, errors galore...
Upvotes: 1
Views: 2313
Reputation: 2009
is mvc 3 installed on the host? if not, do you have your mvc 3 assemblies set to "copy local" when building your app?
using mvc 3 in server environment: http://weblogs.asp.net/scottgu/archive/2011/01/18/running-an-asp-net-mvc-3-app-on-a-web-server-that-doesn-t-have-asp-net-mvc-3-installed.aspx
using mvc 3 in server that doesn't have mvc 3 installed in GAC: http://drew-prog.blogspot.com/2011/01/how-to-deploy-aspnet-mvc-3-app-to-web.html
Upvotes: 2