virtualpathprovider

Using VirtualPathProvider to load ASP.NET MVC views from DLLs

女生的网名这么多〃 提交于 2019-11-26 12:41:37
Based on this question here and using code found here I'm trying to load views that are embedded resources in a separate DLL project, and the original question's author says he has had success doing this - but I can't get it to work as it seems the MVC view engine is intercepting the request and still looking at the file system for the view. Exception: Server Error in '/' Application. The view 'Index' or its master could not be found. The following locations were searched: ~/Views/admin/Index.aspx ~/Views/admin/Index.ascx ~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx ~/App/Views/admin

Using VirtualPathProvider to load ASP.NET MVC views from DLLs

六月ゝ 毕业季﹏ 提交于 2019-11-26 02:41:57
问题 Based on this question here and using code found here I\'m trying to load views that are embedded resources in a separate DLL project, and the original question\'s author says he has had success doing this - but I can\'t get it to work as it seems the MVC view engine is intercepting the request and still looking at the file system for the view. Exception: Server Error in \'/\' Application. The view \'Index\' or its master could not be found. The following locations were searched: ~/Views