部署我的应用程序 [英] deployment of my application

查看:70
本文介绍了部署我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用Visual Studio 2008和SQL Server2005.我的应用程序是winform.


我的应用程序可以在我开发的PC上正常运行.

我想将我的应用程序安装在服务器上,以便在世界任何地方使用(更多用户将用来连接到服务器).

1-如何在服务器上复制数据库?
2-如何更改App.config文件中的数据库路径
这是我的文件:

hello

I am using visual studio 2008 and sql server 2005 My application is a winform.


I have my application works fine on my PC that I develop.

I want to install my application in server to be used anywhere in the world (more users will use to connect to the server).

1 - how I have to copy my database on the server??
2-how do I change the database path in the App.config file
this my file:

connectionString = "Data Source = KAHINA-PC \ SQLEXPRESS; Initial Catalog = WORK; Integrated Security = True"
providerName = "System.Data.SqlClient" />
br mode="hold" />br mode="hold" /> 



3-我如何创建可执行文件?
如果有人可以帮助我,我就会陷入困境


感谢



3-how I create the executable file??
I''m stuck if anyone can help me please


thanks

推荐答案

1.要将数据库移动到服务器,这取决于您拥有多少控制权.您可以只使用附加 [ NSIS [ ^ ], WiX [ InstallShield [ ^ ]或其他许多内容.

希望这会有所帮助.
1. For moving the database to the server, it depends on how much control you have. You could just use Attach[^] or you might have to generate SQL scripts to copy the schema and the data to the new database.

2. for the connection string you will have to change the data source to point to the server and SQL instance name. On the internet, this could even just be an ip address. You will also have to remove the Integrated Security because that is for a Windows account to access the database. You should probably create a user in the database and use that as the UserName and Password in the connection string.

3. You are already compiling an exe on your desktop. You can use that. You might actually mean how do you make the installer for the app so that others can put it on their machines. If this is what you really meant then you could make a visual studio installer project and put trhe output of your main project into it. Other installers that you could use are NSIS[^], WiX[^], InstallShield[^], or many other ones.

Hope this helps.


这篇关于部署我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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