【发布时间】:2016-11-10 22:44:30
【问题描述】:
我最近设置了一个新的 Windows 10 工作站,从以前的 Windows 10 IIS 导入了我的 IIS 设置。
一切都使用 IIS 正确设置,但是每次我运行一个新项目时,我都会收到有关 Missing System.Web.WebPages.Deployment 的错误:
Could not load file or assembly 'System.Web.WebPages.Deployment, Version=1.0.0.0
修复很简单,我只需将以下内容添加到网络配置中。
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-X.X.X.X" newVersion="X.X.X.X"/>
</dependentAssembly>
</assemblyBinding>
问题是,现在仅仅因为我遇到问题,我就强制检查所有项目和其他开发人员提出的问题,所有这些项目和问题都没有这个问题。我尝试像以前一样重新注册 .net 框架,但现在这是 Windows 10 的一部分,包括 4.6.2
这发生在用 VS2013 编写的较旧的 ASP.NET WebForms 上,其中混合了用 VS 2015 编写的较新的 MVC 应用程序。
经过数小时的搜索,我在 google 或 Stackoverflow 上找不到任何东西来解决这个程序集的系统范围问题。
谢谢。
【问题讨论】:
标签: asp.net .net asp.net-mvc webforms