發佈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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章