发布WCF,安装IIS

Publish  TurfService
1. Start -> Computre->right clik Manage
 


2. Computer Management 
a. Services and Applications ->Internet Information Services(IIS) Manager   double clik 
b. Sites ->Default Web Site -> Add Application..
 
c. If your computer has not this item ,please add IIS service manager  do next steps
i. Open Programs and Features
 
ii. Open node and select IIS 6 Management Compatibility,IIS Management Console, IIS Management Scripts and Tools , IIS Management Service,.Net Extensibility, ASP,ASP.Net, ISAPI Extensions, ISAPI Filters ,other checkbox is default. And lick Ok Button, your computer will install IIS Service now
 
3. Open Add Application dialog  
a. Fill Alias ,and select application pool , Physical path, Application pool you should select ASP.Net 4.0  , Physical path is your service that you will publish.my service is D:\ProgramData\Turf.Service
 


 


b. If your application pool has not ASP.Net 4.0 ,please do next step
i. Open your command prompt (Windows + R) and type cmd and press ENTER
You may need to start this as an administrator if you have UAC enabled.
To do so, locate the exe (usually you can start typing with Start Menu open), right click and select "Run as Administrator"
ii. Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press ENTER.
iii. Type aspnet_regiis.exe -ir and press ENTER again.
iv. If you do not successful ,please link: http://stackoverflow.com/questions/4890245/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7
c. If you successful the node “Default web site” will add a new child node that named “turf”. Your service publish successfully.
 


4. Change your service config, open D:\ProgramData\Turf.Service\web.config,please note that ,your database and endpoint address is right
 
5. Change your Web.confg.exe  in  application that you install 
 
6. Run your application.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值