Hosting WCF / .svc Files in IIS7
Here are the steps that you need to go through to get a WCF service hosted in IIS7. I’ve had to track down this information a few different times, so I thought it was worth posting. The documentation for all of this exists, it’s just scattered and you can find multiple sets of instructions for hosting .svc files due to the changes in the earlier builds of Vista.
The first thing you need to do is install IIS7. To do this, go to Control Panel > Programs > “Turn Windows features on or off”

Select “Internet Information Services” and then drill down and make sure that ASP.Net is checked.

The next thing you need to do is install the other bits and pieces that WCF need to have to run in IIS. You can do this by running the command prompt (be sure to run as Administrator) and run ServiceModelReg.exe -i.

Now you should be good to go.
January 18th, 2007 at 3:30 pm
[...] Original post by Ben Carey and software by Elliott Back Posted 18 Jan, 2007 | Categories: Uncategorized [...]
October 9th, 2007 at 12:05 am
I tried this and I received this Error: Unable To initialize the native configuration support external to the web worker process (HRESULT=0×80004002). nativerd.dll must be in %windir%\system32\inetsrv.
Well I checked and it IS in that folder. So what do you think is going on
(and yes I was on Administrator mode..)
I think I need to do that script because otherwise I cant even run my localhost to check if my webservice works. Im having error on the line:
130:
——> 131:
132:
October 9th, 2007 at 12:06 am
October 9th, 2007 at 12:08 am
nevermind my paste…didnt work 2 times .. lol
well the line was in web.config of my webservice
I think i need to add a ligne of mimeMap for Svc files.
October 26th, 2007 at 3:10 pm
Where is this ServiceModelReg.exe ???
Thx
October 26th, 2007 at 7:07 pm
%SystemRoot%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\
You could run the Visual Studio Command Prompt and you should be able to run the file.
April 22nd, 2008 at 7:55 am
Thank you so much, this totally fixed my problem developing in my local IIS using .svc files in my cascadingdropdowns.
May 6th, 2008 at 10:41 am
THANK YOU SO MUCH!!!!
I’ve been googling this and have found a bunch of sites that give you crazy walkthroughs on how to manually add the handlers….
I am glad I gave up on them thinking there must be an easier way! YOU ARE THE MAN! (or women)