Crystal Reports:.net应用程序在调用Crystal Reports时崩溃 [英] Crystal Reports : .net Application Crashes when calling Crystal Reports

查看:100
本文介绍了Crystal Reports:.net应用程序在调用Crystal Reports时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我最近将我的应用程序升级到.net 4.0。

我的应用程序运行正常但是当我调用/打印报告时应用程序崩溃并显示消息

我将调试器附加到应用程序时发现的Bello错误消息

Hello,
I Recently Upgraded my Application to .net 4.0.
My Application runs okay but when I call/print a report Application crashes with the message
Bello error messages I found when I attached a debugger to my application

Unhandled exception at 0x7517C41F (KernelBase.dll) in OMS - Supple.exe: 0xE0434352.



.

First-chance exception at 0x7695030C (kernel32.dll) in OMS - Supple.exe: 0xC0000005: Access violation executing location 0x7695030C.









如果我的应用程序是从VS2012运行的,报告来了没有任何错误信息并且运行顺利。



环境:

.



If my application is being run from VS2012 the reports come up without any error message and runs smoothly.

Environment :

Win 7 - 64 Bit
My Application 32 Bit (x86)
VS2012
net 4.0 Framework





< b>在VS2012中集成Crystal Reports



Integration of Crystal Reports in VS2012

CRforVS_13_0_6.zip





已安装的Crystal Reports运行时间



Installed Crystal Reports Runtime

CRforVS_redist_install_32bit_13_0_6.zip
CRforVS_redist_install_64bit_13_0_6.zip





以上所有文件都是从SAP Crystal报告下载部分下载的。



我用Google搜索了这个问题,发现将app.config修改为



All above files were downloaded from SAP Crystal reports download section.

I Googled this problem and found to modify app.config to

<!--<startup useLegacyV2RuntimeActivationPolicy="true">


  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>-->

  <startup useLegacyV2RuntimeActivationPolicy="true">

  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>







但仍然没用。应用程序崩溃。



我在编译应用程序时也有嵌入式app.config。



请注意我正在使用64位环境构建一个32位应用程序,然后在64位平台上再次运行32位应用程序,并安装了32位和64位水晶报告的运行时间。



当我使用时,一切正常.net 3.5 Framework



为什么会这样?



请建议一种方法来解决这个问题。




But still no use. Application Crashes.

I have also Embedded app.config when compiling the application.

Pleas note that I am using 64bit environment to build a 32 bit application and then again running a 32 bit application on 64bit platform with installed runtime of crystal reports 32bit as well as 64bit.

All was working fine when I was using .net 3.5 Framework

Why is this so?

Please suggest a method to sort this out.

推荐答案

我自己解决了这个问题。



已安装的运行时:

I solved this myself.

Installed Runtimes :
CRforVS_redist_install_32bit_13_0_6.zip
CRforVS_redist_install_64bit_13_0_6.zip

< br $> b $ b



1)确保如果你使用64位vs2012开发32位应用程序,还会安装32位运行时水晶报告



2)Publiesh .config文件与你的应用程序,它是一个xml文件,它应该包含




1) Make Sure if you are developing the 32bit application using 64bit vs2012, 32bit runtime is also installed of crystal reports

2) Publiesh .config files with your application, it is an xml file and it should contain

<startup useLegacyV2RuntimeActivationPolicy="true">

  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>





配置文件与您的应用程序名称相同应该存在于您的应用程序执行路径目录中



3)如果您使用任何程序集保护程序,请不要选中/选择加密字符串



4)从水晶报告升级到最新的服务包(S)



The config file is the same name of your application & should be present in your application execuion path directory

3) If your are using any assembly protector(s) do not check/choose the option of encrypting strings

4) upgrade to latest service pack(S) from crystal reports


这篇关于Crystal Reports:.net应用程序在调用Crystal Reports时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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