2010年8月25日 星期三

WCF .svc 部屬在 IIS 6 會發生 404 File not found

1.最簡單的解法是安裝 .net framework 4.0 ,然後將 IIS Application Asp.net版本改成 4.0

2.手動註冊方法如下

More than likely .svc extension is not registered under IIS as being handled by
ASP.NET(WCF)

Try these 2 steps (replace Framework with Framework64 if it's needed):

Go to:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\
and then run:
aspnet_regiis -i

Go to:
C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
and then run:
ServiceModelReg.exe -i