visual studio 2008 .net项目与sql数据库 [英] visual studio 2008 .net project with sql database

查看:63
本文介绍了visual studio 2008 .net项目与sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.net的新开发者,我在vs2008中有mysql数据库的项目



我的问题在客户端



1)当我在Windows 7中的project \bin\debug文件夹中使用编译的EXE时,它运行正常,但同样的东西没有在XP sp3或sp2计算机中运行。

2)同样的EXE在Windows 7专业版中运行,但在打开任何报表时出错(使用水晶报表)

3)尝试安装crredist2008_x86,但它没有安装

4)尝试通过msiexec命令强行安装crredist2008_x86然后它也没有注册



从网上搜索各种选项后,在参考属性区域做了更改,通过复制本地是/否和特定版本是/否但没有工作



我的要求是,请给我解决方案/一步一步指南我可以在任何操作系统上部署标准EXE。



在客户端,首先我安装Mysql数据库与各自的连接器,所有框架,EXE

和报告文件夹。

I am new developer in .net , I have Project in vs2008 with mysql database

my problem is at Client side

1) when I use compiled EXE from project\bin\debug folder in windows 7 ultimate it runs properly but the same thing is not running in XP sp3 or sp2 computer.
2) the same EXE is running in Windows 7 professional , but giving error while opening any report forms (useing crystal report)
3) try to install crredist2008_x86 , but it dose not installed
4) try to install crredist2008_x86 by msiexec command forcefully then also it is not registering

after searching various options from net, done changes in reference property area , by "copy locally yes/no" and "specific version yes/no" but not worked

My request is, kindly give me the solution/step by step guide by which I can deploy standard EXE on any Operating System.

at Client side , first I install Mysql database with respective connectors, all frameworks , EXE
and Report folder.

推荐答案

有些事需要检查

1)确保您的开发pc处理器和部署目标具有相同的处理器架构,如34/64位。

2)确保您的项目平台目标是任何cpu / x86 / x64。将代码部署到其他机器时,该机器是否支持该平台。

3)确保目标机器已安装.NET框架平台。

4)确保项目在那里安装了相关的第三方组件。

5)最好能够使用任何安装程序项目进行部署,例如高级安装程序/ Windows安装程序等工具。它将帮助您将依赖组件部署到目标计算机。

6)确保在部署代码时使用管理特权进行部署。
Some thing need to check
1) Make sure that both your development pc processor and deployment target has same processor architecture like 34/64 bit.
2) Make sure your project platform target is any cpu/x86/x64. When deployed your code to other machine, is that machine support that platform.
3) Make sure target machine has required .NET framework platform installed.
4) Make sure project dependent 3rd party components installed there.
5) Better you can use any installer project for deployment, tools like advance installer/windows installer. It will help you to deploy dependent component to target machine.
6) Make sure when you deploy code you use administrative privileged for deployment.


这篇关于visual studio 2008 .net项目与sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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