繁体   English   中英

在VS2013中使用报表设计器并在加载新报表时出现装配错误

[英]Using Report Designer in VS2013 and getting Assembly error loading new report

试图在VS2013中使用报表设计器并出现以下错误:

Could not load file or assembly 'System.Web.Mvc, Version 2.0.0.0,Culture = neutrual, PublicKey Token = '31bf3856ad364e35' or one of its dependencies.  The system could not find the file specified

Web.config中已包含以下内容:(重定向应处理此问题?)

<dependentAssembly>
   <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
   <bindingRedirect oldVersion="1.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
</dependentAssembly>

这是主要的web.config。 我还需要其他东西吗?

Microsoft报表设计器,尤其是数据集设计器,不支持项目中的绑定重定向。 设计器正在使用devenv.exe,因此使用devenv.exe.config的绑定重定向来探测程序集。 修复依赖关系链以匹配实际存在的内容将有助于解决此问题(在我的情况下,Unity.MVC5绑定Unity 3.0而不是Unity 3.5)。

我不愿修改devenv.exe.config,因为它似乎在VS上有一定的定期性。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM