Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF not running under IIS 6.0

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?

like image 969
Blankman Avatar asked Jan 16 '09 19:01

Blankman


2 Answers

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
like image 97
Pawel Pabich Avatar answered Nov 05 '22 23:11

Pawel Pabich


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.

like image 24
Eugene Yokota Avatar answered Nov 06 '22 00:11

Eugene Yokota