在客户端计算机上运行应用程序时,数据集会被压缩。 [英] Dataset is crushed when application is run on client machine.

查看:91
本文介绍了在客户端计算机上运行应用程序时,数据集会被压缩。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello

I have make one small desktop application in visual studio 2010 . In this i used one crystal report.
It is working properly in development side. But when i make its setup & install in client machine, it will close whole application.It means it stops whole process.

What can I do in this situation ?

I have seen the problem in Dataset when execution control comes on dataset it will close whole application.





我的尝试:



我正在使用visual studio 2010& vs2010的水晶报告。



What I have tried:

I am using visual studio 2010 & crystal report for vs2010 .

推荐答案

引用:

我见过这个问题数据集执行控件在数据集上出现时会关闭整个应用程序。

I have seen the problem in Dataset when execution control comes on dataset it will close whole application.



然后最可能的原因是你没有使用任何try-catch块来试图正确定位和处理错误,您的连接字符串可能是错误的。开发和生产通常不使用相同的连接字符串 - 甚至是相同的数据库 - 因此,除非您的代码设置为使用配置系统来存储连接字符串,否则它可能仍在尝试引用您的开发SQL Server实例。如果是,则需要检查该字符串是什么,并且它对于它引用的SQL的实际实例是正确的。并且该实例具有数据库的副本。而且......你明白了。

我们不能为你做任何事情:所以仔细检查一下,并添加try-catch块来报告问题(包括任何内部异常)这样你就会被告知错误是什么而不是崩溃。


Then the most likely reason is that you don't use any try-catch blocks to try to locate and handle errors properly, and your connection string is probably wrong. Development and production do not normally use the same connection string - or even the same database - so unless your code is set up to use a configuration system to store the connection string, it's probably still trying to reference your development SQL Server instance. EVen if it is, you need to check what that string is, and that it's correct for the actual instance of SQL that it references. And that the instance has a copy of the database. And ... you get the idea.
We can't do any of that for you: so check it all very carefully, and add try - catch blocks to report problems (including any inner exception) so that you get told what the error actual is rather than "it crashed".


嗯,你没有提供太多信息,但是...



Well, you didn't provide much information but...

MS写道:

要提供Crystal Reports运行时文件,您的安装项目必须包含Crystal Reports for .NET Framework 2.0 Redistribution Package或Crystal Reports合并模块。 Crystal Reports合并模块可用于32位和64位计算机。

To provide Crystal Reports runtime files, your setup projects must include the Crystal Reports for .NET Framework 2.0 Redistribution Package or Crystal Reports merge modules. Crystal Reports merge modules are available for 32 and 64-bit machines.



来源: Crystal Reports部署概述 [ ^ ]



这意味着,您需要在客户端计算机上安装Crystal Reports运行时文件才能使用它。


source: Crystal Reports Deployment Overview[^]

This mean, you need to install Crystal Reports runtime files on client machine to be able to use it.


这篇关于在客户端计算机上运行应用程序时,数据集会被压缩。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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