Carl R Carl R - 3 months ago 28
ASP.NET (C#) Question

WCF on IIS8; *.svc handler mapping doesn't work

I'm trying to get a wcf service running in IIS8 on 2012 build 8400.

When installing the web role the wcf stuff (under 3.51) wasn't to be found like in 2008.

When installed the svc handler mapping was missing, so i did a:

%windir%\Microsoft.NET\Framework\v3.0\WindowsCommunication Foundation\ServiceModelReg.exe –i


Now the handler mapping is there, but I still get:

The resource you are looking for does not have a handler associated with it.


(I removed the static file handler.)

The site is using the classic pipeline in order to use impersonation.

Answer

More specifically:

  1. Run Server Manager (on task bar and start menu)
  2. Choose the server to administer (probably local server)
  3. Scroll down to "Roles and Features" section.
  4. Choose "Add Role or Feature" from Tasks drop down
  5. On "Add Role or Feature Wizard" dialog, click down to "Features" in list of pages on the left.
  6. Expand ".Net 3.5" or ".Net 4.5", depending on what you have installed. (you can go back up to "roles" screen to add if you don't have.
  7. Under "WCF Services", check the box for "HTTP-Activation". You can also add non-http types if you know you need them (tcp, named pipes, etc).
  8. Click "Install" Button.