Crystal在PC和服务器上报告不同的版本 [英] Crystal Reports different versions on pc and on server

查看:90
本文介绍了Crystal在PC和服务器上报告不同的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用crystalreportviewer控件(版本10.5.3700.0)构建一个winforms应用程序。应用程序工作正常(它从资源加载报告并显示它很好)。
但是当我把我的应用程序在服务器(其他pc)有运行时版本12.0.1100.0和12.0.2000.0。
我的应用程序没有显示,即使错误也不显示:/

I'm building a winforms application using a crystalreportviewer control (version 10.5.3700.0). Application works fine (it loads report from resources and displays it fine). But when I put my application on server (other pc) that has runtime in versions 12.0.1100.0 and 12.0.2000.0. My application isn't showing at all, even errors don't show :/

我在我的应用程序中试图使用dll的版本12.0.1100.0通过删除引用并添加新的,但这会产生错误。

I was trying to use dll's in version 12.0.1100.0 in my application by removing references and adding new, but this generates errors.

我无法在服务器上安装运行时10.5。

I can't install runtime 10.5 on server.

是否可以将版本12.0.xxxx中的控件添加到visual studio 2008?
如何做?

Is it possible to add controls in version 12.0.xxxx to visual studio 2008? How to do that?

我认为如果我在我的应用程序中使用12.0.xx控件,它会工作得很好。

I think that if I use version 12.0.xx controls in my application it will work fine.

请帮助!!!

我做了什么:

从工具箱中删除Crystalreportviewer控件,并添加了一个从dll包含版本12.0,但没有运气。 Visual是添加控件,所有引用,但控件不可见:/

I have removed Crystalreportviewer control from toolbox and added new one from dll containing version 12.0, but no luck. Visual is adding control, all references, but control isn't visible :/

推荐答案

最佳解决方案是在服务器上安装相同的运行时。

无论如何,您可以在app.config或web.config中使用此XML:

Best solution is installing same runtime on the server.
Anyway, you can use this XML in your app.config or web.config:

  <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral"/>
        <bindingRedirect oldVersion="xx.x.xxxx.x" newVersion="yy.y.yyyy.y"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral"/>
        <bindingRedirect oldVersion="xx.x.xxxx.x" newVersion="yy.y.yyyy.y"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral"/>
        <bindingRedirect oldVersion="xx.x.xxxx.x" newVersion="yy.y.yyyy.y"/>
      </dependentAssembly>
      <dependentAssembly>
        ...
    </assemblyBinding>
  </runtime>



其中 oldVersion 是您用于开发的版本和静态网页是安装在服务器

where oldVersion is the version you use for development and newVersion is the version installed on the server

这篇关于Crystal在PC和服务器上报告不同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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