本文介绍了带有水晶报告和 VS2010 的设置项目无法注册水晶 dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010中建立了一些水晶报表,并为它做了一个设置项目.它在我的开发机器上部署良好,但在尝试将其安装在客户端机器上时出现以下错误.

I built some crystal reports in VS2010, and made a setup project for it. It deploys fine on my dev machine, but I get the following error while trying to install it on the client machine.

我已经用谷歌搜索了这个错误,发现 VC++ 2005 可再发行组件是先决条件.我已将这些合并模块添加到我的设置项目中,但仍然出现相同的错误.

I have googled this error for sometime and found that the VC++ 2005 redistributables are a prereq. I have added these merge modules to my setup project but I still get the same error.

我还添加了 .NET 4.0 作为先决条件,但仍然遇到相同的错误.有人有什么想法吗?

I have also added .NET 4.0 as a prerequisite, and still get the same error. Anybody has any ideas?

我的开发机器运行的是 Windows 7,我正在尝试将它部署在 Windows Server 2008 R2 机器上.

My dev machine is running Windows 7, and I am trying to deploy it on a Windows server 2008 R2 machine.

推荐答案

为了其他人的参考,我最终添加了 Crystal Reports Runtime Engine for .NET 4.0 作为先决条件,如果用户没有安装它就让他们下载它.我还必须添加 .NET 4.0 先决条件(不是客户端配置文件),当然还有合并模块(CRRuntime_13_0.msm).如果有人有更好的方法让它发挥作用,我仍然很感兴趣.谢谢!

For anyone else's reference, I ended up adding Crystal Reports Runtime Engine for .NET 4.0 as a prerequisite and just make the user download it if they dont have it installed. I also had to add a .NET 4.0 prerequisite (not the client profile) and of course the merge modules (CRRuntime_13_0.msm). If anyone has a better way of getting this to work, I am still interested. Thanks!

这篇关于带有水晶报告和 VS2010 的设置项目无法注册水晶 dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 05:30