vb.net 如何将 Crystal Reports 程序集(crystaldecisions.reportappserver.commonobjectmodel Ver 13.0.2000.0)包含到 Windows Installer 中?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7506229/
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-09-09 15:41:38  来源:igfitidea点击:

How do I Include Crystal Reports Assembly (crystaldecisions.reportappserver.commonobjectmodel Ver 13.0.2000.0) into Windows Installer?

vb.netvisual-studio-2010crystal-reportswindows-installer

提问by Phillip Rowan

I have built a project using VS 2010 and I have 2 reports I am creating within the project. While in VS2010, I can debug the program and the reports work perfectly.

我已经使用 VS 2010 构建了一个项目,并且我在该项目中创建了 2 个报告。而在VS2010中,我可以调试程序并且报告工作正常。

Now I have come to the point where I want to publish my project and install it on a machine that my program will be used on. I tried 'Publishing' my project and running the 'Setup' file on the other computer and I get the following error:

现在我已经到了要发布我的项目并将其安装在我的程序将在其上使用的机器上的地步。我尝试“发布”我的项目并在另一台计算机上运行“安装”文件,但出现以下错误:

Unable to install or run the application. The application requires that assembly CrystalDecisions.ReportAppServer.CommonObjectModel Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC) first. Please Contact your System Administrator.

无法安装或运行该应用程序。该应用程序要求首先在全局程序集缓存 (GAC) 中安装程序集 CrystalDecisions.ReportAppServer.CommonObjectModel 版本 13.0.2000.0。请联系您的系统管理员。

Doing some research, I have found out that you can manually change the GAC or have Windows Installer fix it for you. To be honest, I don't know where the GAC is or how to modify it. My ideal solution would be to figure out how to setup Windows Installer to fix the GAC and configure Crystal reports however to get my project to run on a basic machine.

做了一些研究,我发现您可以手动更改 GAC 或让 Windows Installer 为您修复它。老实说,我不知道 GAC 在哪里,也不知道如何修改它。我理想的解决方案是弄清楚如何设置 Windows Installer 来修复 GAC 并配置 Crystal 报告,但让我的项目在基本机器上运行。

Can someone help me setup Windows Installer to install the appropriate Crystal Reports Engine so my project will work??

有人可以帮我设置 Windows Installer 来安装适当的 Crystal Reports Engine,这样我的项目就可以工作了吗??

I am new to Windows Installer, so overkill on details won't bother me a bit!! Thanks so much in advance!!

我是 Windows 安装程序的新手,所以对细节的过度处理不会让我感到困扰!!非常感谢提前!

回答by Cosmin Pirvu

You can try adding a Crystal Reports runtime installeras a prerequisite to your main package. You need the one with version 13.0.2000.0.

您可以尝试添加Crystal Reports 运行时安装程序作为主程序包的先决条件。您需要版本为 13.0.2000.0 的那个。

You can read more about prerequisites here:

您可以在此处阅读有关先决条件的更多信息:

回答by SteveCav

You could also try setting CopyLocal=True for the crystal references.

您也可以尝试为水晶参考设置 CopyLocal=True。