Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't seem to get around this problem of adding a web service reference when the web service is hosted in IIS 7.

I can add it just fine if I am running the VS2008 development server, but when I switch it over to IIS I get a 405 error. It seems to be a permission issue, but what?

I've tried adding permissions to 'Everyone' in the folder the service lies within, and adding a script mapping of *.svn to aspnet_isapi.dll.

Anybody know what I might be missing?


EDIT: Added a bounty of everything I have. It seems as though putting this question on SO gets the 'This should be on...' birds out, even though Server Fault is where questions go to die.

share|improve this question
I see that server fault is where questions go to die... – eskerber Oct 27 '09 at 13:54
yeah server fault eats butt turds. – FlavorScape Jul 6 '12 at 21:44
up vote 5 down vote accepted

<%windir%>Microsoft.NET/Framework/v3.0/Windows Communication Foundation/ServiceModelReg.exe -i


<%windir%>Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i -enable

This mapped the proper isapi dll's to the *svc extension, among other things.

Bless Microsoft...

share|improve this answer
+1 (well 2 really). I was just getting exactly this problem from within Visual Studio on Windows 7 – ChrisF Jan 28 '10 at 13:29
I know this question is specifically for IIS 7 but in case anyone running IIS 6 stumbles upon this question, the above does not work; however, ensuring that .svc is mapped to aspnet_isapi.dll (and don't forget to use the Framework64 dll if you're running a 64-bit server) fixes this issue. (A thousand thanks to eskerber for leading me in the right direction.) – Michael Todd Apr 23 '10 at 19:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.