C#exe项目未在另一台计算机上运行 [英] C# exe project not running in another computer

查看:290
本文介绍了C#exe项目未在另一台计算机上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Crystal Reports完成了C#Project数据库-sql server 2005数据库,我也完成了安装程序.安装程序位于debug文件夹中.我已经将安装程序复制到我的闪存驱动器.当我尝试将其安装到另一台计算机上时,它正在安装.但是当我执行该项目时,出现一条消息.

无法打开项目.
Windows正在寻找打开它的解决方案.

然后它自动关闭.这首先是我的问题.

然后我在另一台计算机上安装了Visual Studio.现在将其打开.现在问题出在报表上.我无法打开水晶报表.

我想在其他机器上实现该项目.这怎么可能?

I have finished my C# Project database-sql server 2005 databse,also using crystal reports.I am done with the setup also.The setup is in debug folder. Ive copied the Setup to my flash drive.When I tried to install it on another computer, its installing .but when I executed the project, Getting One message..

Project cannot be opened.
Windows is searching for a solution to open it.

And then its automatically closing.This was my problem first.

Then I installed visual studio in another computer.Now its opening.Now the problem is with reports.I cannot open my crystal reports .

I want to implement this project in some other machines.How is this possible?

推荐答案

在生成项目的安装程序时可能会丢失某些受支持的程序集.

正确检查您的部署项目,是否缺少任何内容.
May be some supported Assemblies are missed while you generating the Setup of your project.

Check your deployment project properly, is there any thing missing..


您需要导出.NET框架sqlserver2005.为此,请按照我的步骤操作:
1.点击项目>项目属性菜单
2.选择发布标签
3.现在,单击前提条件按钮
4.现在检查您使用的框架.(要知道您的框架是什么:单击编译"选项卡>高级编译"选项按钮),然后还要SQL Server 2005.此外,您需要检查一些安装支持文件,例如Windows Installer.
祝你好运.
You need to export .NET framework, sqlserver2005. TO do this follow my steps:
1. click on project>Project property menu
2. Select publish Tab
3. Now Click on prerequisites button
4. Now Check your framework you used.(TO know what is your framework: Click Compile tab>Advance compile option button) and SQL server 2005 also. Additionally you need to check some install supporting file like Windows Installer.
Wise you best luck.


这篇关于C#exe项目未在另一台计算机上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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