.svc,MIME application/octet-stream。*.svcSystem.ServiceModel.Activation.HttpHandlersvc-Integrated在 Server Manager(伺服器管理員) > Add Roles and Features(新增角色與功能) > Features(功能) 中,展開:
.NET Framework 4.5 Features
└─ WCF Services
├─ HTTP Activation
├─ Message Queuing (MSMQ) Activation
├─ Named Pipe Activation
├─ TCP Activation
└─ TCP Port Sharing
勾選 HTTP Activation(至少),按下一步安裝完成。IIS 會自動註冊 .svc 對應、Handler Mapping 及相關設定,無需手動操作。
瀏覽 https://localhost/YourService.svc,若顯示 WCF 服務說明頁面即代表啟用成功。
aspnet_regiis -i -enable 或 ServiceModelReg.exe -i 重新註冊。