在服务器上部署 [英] deployement on the server

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

问题描述

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

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

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

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

感谢

hello
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

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

thanks

推荐答案

只需在Google上搜索

http://www.google.co.in/search?sourceid=chrome&ie=UTF-8&q=deployement+on+the+server#http://www.google.co. in/blank.html [
Just Search It On Google

http://www.google.co.in/search?sourceid=chrome&ie=UTF-8&q=deployement+on+the+server#http://www.google.co.in/blank.html[^]


您将无法(并且我可能是错的)能够将winforms应用程序的exe放在服务器上,您需要将exe发送给客户端和用户.

您需要将数据库部署在ISS服务器上(可以在Google上阅读),或者创建部署在访问数据库的服务器上的Web服务.两者都非常耗时,您需要对其进行阅读,这不容易,因为从网络上获取源代码很容易.

因此,对于应用程序配置文件,datasource标记需要指向要承载数据库的位置,因此,如果您的家庭服务器上带有sql,该数据库允许远程连接,则该数据库的地址将到达该位置. >
我建议您对Web服务进行一些阅读,因为我认为这是远程连接数据库的最佳方法.
You wouldnt be able to (and I could be wrong) be able to put the exe of the winforms app on a server, you would need to send the exe to clients and users.

You would need to deploy the database on an ISS server (you can read that up on Google), or create webservices that are deployed on a server which access your database. Both are quite time consuming and you would need to read up on it, its not easy as grabbing source code off the net.

So for the app config file the datasource tag needs to point to where you are going to host the database, so if you have a homeserver with sql on it that allows remote connections then the address of the that database would go there.

I would advise you do some reading on webservices as I think that is the best way to connect to a database remotely.


1)取决于应用程序使用哪种技术? (是Winforms应用程序,WPF应用程序等).如果是Winforms,则不太可能将应用程序直接部署到服务器上.

2)如果您创建了连接,则应用程序配置应该已经存储了连接字符串,请将其更改为存储数据库的位置

3)同样,这取决于您使用什么技术
1) Depends on what sort of technology does the application use? (Is it a winforms app, WPF App, etc). If it is winforms its unlikely you can deploy the app straight to a server

2) App config should already have a connection string stored if you created a connection, you change that to the where ever your database is stored

3) Again that depends on what technology you use


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

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