WPF VS2010中的Crystal Report文件生成操作 [英] Crystal Report file build action in VS2010 for WPF

查看:74
本文介绍了WPF VS2010中的Crystal Report文件生成操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能建议我应该为WPF中的Crystal Report .rpt文件选择什么构建操作,以便成功读取Crystal Report?

背景:
Crystal Report源文件是从Version = 10.2.3600.0 Crystal Report Engine创建的
WPF开发环境:
VS2010,Crystal Report Engine 13.0.2000.0,.Net 4.0

加载此水晶报表时遇到错误:

Can anyone suggest what build action I should choose for crystal report .rpt files in WPF in order to read the crystal report successfully?

Background:
Crystal report source file was created from Version=10.2.3600.0 Crystal Report Engine
WPF development environment:
VS2010, Crystal Report Engine 13.0.2000.0, .Net 4.0

I encountered an error as load this crystal report:

Mixed mode assembly is built against version ''v2.0.50727'' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.<br />

推荐答案

可能是Crystal Report引用了一些使用.Net 2.0的dll.您现在正在尝试在WPF(.Net 4.0)中使用它.
It could be that the Crystal Report is referencing some dll that uses .Net 2.0. You are now trying to use it in WPF (.Net 4.0).


修复链接

[ ^ ]
什么是其他"配置"是否需要在.NET 4.0项目中引用.NET 2.0混合模式程序集? [混合模式程序集是针对运行时的版本"v2.0.50727"构建的,无法在4.0中加载运行时 [ ^ ]
SGEN:错误:混合模式程序集是针对运行时的版本'v2.0.50727'构建的,如果没有其他版本,则无法在4.0运行时中加载配置信息. [^ ]
.NET 4.0上的混合模式程序集 [ ^ ]
错误:混合模式程序集是针对运行时的版本"v2.0.50727"构建的,如果没有该版本,则无法在4.0运行时中加载其他配置信息".在.NET Framework 4中使用RepositoryAccess时发生错误. [ ^ ]
Fix links

Mixed mode assembly is built against version ''v2.0.50727'' error using .NET 4 Development Web Server[^]
What ''additional configuration'' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?[^]
Mixed mode assembly is built against version ''v2.0.50727'' of the runtime and cannot be loaded in the 4.0 runtime[^]
SGEN : error : Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.[^]
Mixed mode assemblies on .NET 4.0[^]
ERROR: A "Mixed mode assembly is built against version ''v2.0.50727'' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information" Error Occurs When Using RepositoryAccess with .NET Framework 4.[^]


这篇关于WPF VS2010中的Crystal Report文件生成操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆