C# 无法加载文件或程序集“水晶决策.windows.forms,version=13.0.2000.0”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15130508/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 14:10:37  来源:igfitidea点击:

Cannot load file or assembly 'crystal decisions.windows.forms,version=13.0.2000.0'

c#visual-studio-2010sql-server-2008crystal-reports

提问by Sharanamma Jk

I'm working on windows application. In this I designed Report module. I get error whenever I wanted to view report in Windows 7, Windows XP & Windows Vista, but it works in Windows 8.

我正在开发 Windows 应用程序。在这个我设计了报告模块。每当我想在 Windows 7、Windows XP 和 Windows Vista 中查看报告时都会出错,但它可以在 Windows 8 中使用。

Following steps I took before deploying setup

按照我在部署设置之前采取的步骤

  1. I installed .NET Framework 4 in Windows XP & .NET Framework 4.5 in Windows 7
  2. I installed CRforVS_13_0_2but its through error message like
  1. 我在 Windows XP 中安装了 .NET Framework 4,在 Windows 7 中安装了 .NET Framework 4.5
  2. 我安装了CRforVS_13_0_2但它通过错误消息

You must already have Visual Studio 2010 installed to proceed with this installation. and
SAP Crystal Reports version for Visual studio 2010 installation ended prematurely because of an error.

您必须已经安装了 Visual Studio 2010 才能继续进行此安装。和
SAP的Crystal Reports版本的Visual Studio 2010的安装提前结束因一个错误。

  1. Then I installed my project setup (while creating setup manually I included all crystal report assemblies), logged in and went to Report Menu, on click to open preview of Crystal Report its through error message like
  1. 然后我安装了我的项目设置(在手动创建设置时我包含了所有的水晶报表程序集),登录并转到报表菜单,单击以通过错误消息打开水晶报表的预览,例如

Cannot load file or assembly 'crystal decisions.windows.forms,version=13.0.2000.0,culture=neutral,Public keytoken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

无法加载文件或程序集“水晶决策.windows.forms,version=13.0.2000.0,culture=neutral,Public keytoken=692fbea5521e1304”或其依赖项之一。该系统找不到指定的文件。

Please guide me the how to resolve this issue.

请指导我如何解决这个问题。

采纳答案by echavez

You haven't correctly installed the required Crystal Reports Assembly, you have to install the Runtime of Crystal Reports on each client machine not the version for VS, it won't work just by copying the assmblies along with your application.

您没有正确安装所需的 Crystal Reports 程序集,您必须在每台客户端计算机上安装 Crystal Reports 运行时而不是 VS 版本,仅通过将程序集与您的应用程序一起复制是行不通的。

You can get the correct installers from SAP directly, maybe you will be required to create a free account.32Bit64Bit

您可以直接从 SAP 获取正确的安装程序,也许您需要创建一个免费帐户。32位64

Regards,

问候,