如何在没有Visual Studio的情况下保持WCF服务运行 [英] How to keep WCF service running without Visual Studio

查看:94
本文介绍了如何在没有Visual Studio的情况下保持WCF服务运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个应用程序并向它添加了另一个项目,一个WCF服务。当我在VS中启动应用程序,并且应用程序创建ServiceClient时,VS在Cassini中托管服务并且运行良好。我有另一个应用程序应该使用第一个应用程序中引入的服务。如果我将服务设置为启动项目并按Run,Cassini Web服务器将启动,我可以从第二个应用程序连接到该服务。在VS中按下Stop后,Cassini服务器仍然运行,这非常好。显然当我关闭托管VS时,Cassini服务器也会关闭。如何在关闭VS而不将其部署到IIS服务器时保持服务运行?


Andris

Hi,

I created an application and added another project to it, a WCF service. When I start the application in VS, and the application creates the ServiceClient, VS hosts the service in Cassini and it works well. I have another application that is supposed to use the service introduced in the first application. If I set the service as startup project and press Run, the Cassini webserver starts up, and I can connect to the service from the second application. After I press Stop in VS, the Cassini server still runs which is very good. Obviously when I close the hosting VS, the Cassini server also gets closed. How can I keep the service running when the VS is closed without deploying it to an IIS server?


Andris

推荐答案

如果您不是希望在IIS服务器上部署,然后另一个选择是创建一个窗口服务。
If you are not looking to deploy on IIS Server then another option would be to create a window service.


这篇关于如何在没有Visual Studio的情况下保持WCF服务运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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