Because now you are serving your views from some unknown location there is no longer the ~/Views/web.config
file which applies and indicates the base class for your razor views (<pages pageBaseType="System.Web.Mvc.WebViewPage">
). So you could add an @inherits directive at the top of each embedded view to indicate the base class.
@inherits System.Web.Mvc.WebViewPage
@model ...