Asp.net mvc Umbraco子MVC应用程序(虚拟目录)-无法加载文件或程序集Umbraco.ModelsBuilder
我正在尝试在我的Umbraco 7站点根目录下部署一个自定义的纯ASP.NET MVC应用程序作为虚拟目录“应用程序”。但是,我总是得到以下YSOD错误:Asp.net mvc Umbraco子MVC应用程序(虚拟目录)-无法加载文件或程序集Umbraco.ModelsBuilder,asp.net-mvc,umbraco,Asp.net Mvc,Umbraco,我正在尝试在我的Umbraco 7站点根目录下部署一个自定义的纯ASP.NET MVC应用程序作为虚拟目录“应用程序”。但是,我总是得到以下YSOD错误: Server Error in '/DemoApp' Application. Could not load file or assembly 'Umbraco.ModelsBuilder' or one of its dependencies. The system cannot find the file specified. 我还尝
Server Error in '/DemoApp' Application.
Could not load file or assembly 'Umbraco.ModelsBuilder' or one of its dependencies. The system cannot find the file specified.
我还尝试从头开始消除尽可能多的变量。以下是复制步骤:
umbraco demo.local
http://umbraco-demo.local
并运行了Umbraco安装程序Umbraco保留路径
设置中添加了“~/DemoApp”http://umbraco-demo.local/DemoApp
Could not load file or assembly 'Umbraco.ModelsBuilder' or one of its dependencies. The system cannot find the file specified.
其他信息: 我不认为这与ModelsBuilder有特别的关系。为了看看会发生什么,我在我的“DemoApp”web.config中添加了以下内容:
<assemblies>
<remove assembly="Umbraco.ModelsBuilder" />
</assemblies>
因此,我自然而然地尝试添加:
<remove assembly="UrlRewritingNet.UrlRewriter" />
但这没有影响,错误依然存在。在另一个例子中,错误提到了一个不同的程序集,而不是
UrlRewritingNet.UrlRewriter
我通过将~/api/添加到:-
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles, ~/api/" />
然后用位置标记包装我的父应用程序umbraco的以下web.config部分:-
<location path="." inheritInChildApplications="false">
<system.web>
及
我通过将~/api/添加到:-
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles, ~/api/" />
然后用位置标记包装我的父应用程序umbraco的以下web.config部分:-
<location path="." inheritInChildApplications="false">
<system.web>
及