portable-areas

ASP.NET MVC 3, Razor Views, and Portable Areas

那年仲夏 提交于 2019-12-18 10:24:58
问题 I am trying to using portable views with ASP.NET MVC 3 and razor views as that seems like the best way to create an easy plug-in architecture. So I have my class library setup and I have my view located in /Views/Admin/Index.cshtml and it is set as an Embedded Resource. I then include that project as a dependency for the main web application project. When I try to access the Admin controller, Index action I get a message that is can't find that view file (so the controller is being properly

Portable Area not finding embedded files MVC4 C#

▼魔方 西西 提交于 2019-12-02 16:11:23
问题 I have a solution with two projects in it. A portable areas project, and a web site that references the portable areas project, and Both reference MvcContrib. The problem I am have is with the embedded resources, they are giving me a 404 error when I try to get to them. It seems like it's trying to access a physical path not the dll. The partial view works fine. The file I'm trying to access looks like this inside my visual studio solution explorer AdHocReporting/Areas/AdHocReportBuilder

Portable Area not finding embedded files MVC4 C#

女生的网名这么多〃 提交于 2019-12-02 11:14:30
I have a solution with two projects in it. A portable areas project, and a web site that references the portable areas project, and Both reference MvcContrib. The problem I am have is with the embedded resources, they are giving me a 404 error when I try to get to them. It seems like it's trying to access a physical path not the dll. The partial view works fine. The file I'm trying to access looks like this inside my visual studio solution explorer AdHocReporting/Areas/AdHocReportBuilder/Content/adhoc.css (the build action is embedded) Here is the routing for the portable area: using System

ASP.NET MVC 3, Razor Views, and Portable Areas

。_饼干妹妹 提交于 2019-11-29 21:05:37
I am trying to using portable views with ASP.NET MVC 3 and razor views as that seems like the best way to create an easy plug-in architecture. So I have my class library setup and I have my view located in /Views/Admin/Index.cshtml and it is set as an Embedded Resource. I then include that project as a dependency for the main web application project. When I try to access the Admin controller, Index action I get a message that is can't find that view file (so the controller is being properly included). I am assume it is trying to look in the main web application project and not the portable