Trying to get my WCF service running under IIS 6.
I have created the .svc
and aspnet_isapi.dll
mapping according to: http://msdn.microsoft.com/en-us/library/ms752241.aspx
When viewing the Server1.svc
page, I am getting a 404.
I have tested the site with a simple .aspx page to ensure the URL is working, but again the .svc extension isn't.
I have .NET 3.5 SP1 installed, my web.config
is referencing 3.5 assemblies, and I don't get an error when viewing a .aspx page so it is picking those assemblies up fine, presumably.
What could be wrong?
More than likely the .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
Under Internet Information Service (IIS) Manager
, open the node called Web Service Extension
. Make sure that ASP.NET v2.0.5.0727
is set to Allowed. I spent hours looking for different settings and found it was set to Prohibited. Just click Allow button to enable ASP.NET.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With