水晶报告在安装项目中不起作用 [英] crystal report not works in setup project

查看:74
本文介绍了水晶报告在安装项目中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目在.Net 4中运行良好,

但是在安装项目中我遇到了一些错误:

警告2 选择SAP Crystal Reports Runtime Engine for .NET Framework项目需要Microsoft.Data.Access.Components.2.8。在先决条件对话框中选择缺少的先决条件,或者为缺少的先决条件创建引导程序包。



错误4 先决条件的安装位置尚未设置为组件供应商的网站和文件'Crystal Reports for .NET无法在磁盘上找到SAP Crystal Reports Runtime Engine for .NET Framework项中的Framework 4.0\CRRuntime_32bit_13_0_5.msi'。有关更多信息,请参阅帮助



和建筑事件!!

我的app.config也是:

My project is in .Net 4 and works good,
But in setup project i got some errors like this:
Warning 2 The 'SAP Crystal Reports Runtime Engine for .NET Framework' item selected requires 'Microsoft.Data.Access.Components.2.8'. Select the missing prerequisite in the Prerequisites Dialog Box or create a bootstrapper package for the missing prerequisite.

Error 4 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_5.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework' can not be located on disk. See Help for more information.

and building faild!!
also my app.config is:

<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
    <add name="vam.Properties.Settings.vamConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=G:\vam\vam\bin\Debug\vam.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>







please help




please help

推荐答案

只需确保在app.config文件中添加它。然后它应该工作。

Just make sure to add this in your app.config file. and then it should work.
<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
    </startup>


CRRuntime_32bit_13_0_5.msi在客户端系统上安装它会正常工作..
CRRuntime_32bit_13_0_5.msi install it on client system it will work fine..

您好,右键单击您的项目并转到属性..然后将目标框架表单.Net framework 4客户端配置文件更改为.Net framework 4 ...
Hi, right click on your project and go to properties..and then change the Target framework form .Net framework 4 client profile to .Net framework 4...


这篇关于水晶报告在安装项目中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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