WCF: Hosting WCF In IIS
Posted m苗子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WCF: Hosting WCF In IIS相关的知识,希望对你有一定的参考价值。
1. Create an IIS Application as below
2. In the physical path, there\'re 2 files and 1 App_Code folder
a. App_code contains the WCF Service contract and class implementing the contract
b. service.svc contains code hosts the service
c. Web.config configure the service endpoints exposed to clients
3. Make sure items below is enabled for your computer
a. IIS
b. WCF HTTP Activation
4. Go to http://localhost/IISHostedCalc/service.svc, we can see the service is created.
以上是关于WCF: Hosting WCF In IIS的主要内容,如果未能解决你的问题,请参考以下文章