且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在服务器上部署

更新时间:2023-02-14 13:49:32

只需在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