开发者

Does a WCF Service that runs over tcp.net require IIS

I'm t开发者_JAVA百科rying to deploy a WCF service that uses a netTcpBinding (and a mexTcpBinding for metadata) on a remote server (Win 2008 R2) without installing IIS.

Trouble is, everything I'm trying is telling me I need various IIS components installed on the remote box.

Is that really the case? It seems to me that, with a tcp.net connection, I should be fine without IIS.


You don't need IIS, here's an MSDN article called How to: Host WCF in a Windows Service Using TCP

It seems to be fairly detailed and easy to follow.


In general, it is not necessary to use IIS for a WCF service. Any WCF service can be self-hosted.


A WCF service needs to be hosted somewhere. If you don't want to use IIS you need to write a host application which could be console or a Windows NT service application. If you choose to host your service in IIS, starting from IIS 7 you could use non HTTP bindings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜