在Crystal Report的SetDataSource上崩溃 [英] Appcrash on SetDataSource of Crystal Report

查看:59
本文介绍了在Crystal Report的SetDataSource上崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio 10与安装了.Net的Crystal Reports一起使用.我的开发环境是装有Windows 8的64位PC.一切在我的开发PC上都可以正常运行,但是当我在客户端PC上安装该应用程序时,我在reportclass的SetDataSource上收到Appcrash Windows错误.关于崩溃的唯一信息是KernelBase.dll是故障模块.当我查看Windows事件查看器时,它说有一个filenotfoundexception,但没有提供正在寻找的文件的名称.

I'm using Visual Studio 10 with Crystal Reports for .Net installed. My development environment is a 64 bit pc with Windows 8 on. Everything works fine on my development pc but when I install the app on the client pc I get an Appcrash windows error on the SetDataSource of the reportclass. The only info on the crash is the KernelBase.dll is the fault module. When I look at Windows Event viewer it says there was a filenotfoundexception, but doesnt give the name of the file it is looking for.

客户端计算机是32位Windows 7计算机.我在上面安装了最新的32位运行时文件.

The client pc is a 32 bit windows 7 pc. I installed the latest 32 bit runtime files on it.

能帮我找出问题所在吗?

Can you please help me to figure out what the problem is?

谢谢

推荐答案

有点晚,但是对于那些遇到此常见问题的人来说.yourApp.exe.config包含以下行

Bit late, but for those who encounter this common problem. yourApp.exe.config contains this line

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

将其更改为

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

问题解决了

这篇关于在Crystal Report的SetDataSource上崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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