I wrote custom VirtualFile and VirtualPathProvider implementations that are successfully obtaining embedded resources that are Partial Views.
However, when I attempt
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 (
). 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 ...