我想为我的ASP.NET MVC应用程序的一个区域使用的某些库添加程序集重定向。不要混淆根应用程序Web.config,我想在这个区域的Web.config中有这些重定向。
这可能吗?将以下代码添加到该区域的Web.config似乎没有效果(从根Web.config工作时):
<runtime>
<assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Diagnostics.Tracing.EventSource" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.1.14.0" newVersion="1.1.14.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>