WCF on IIS7 on Vista – Adding .svc Handler

1 בדצמבר 2008

WCF on IIS7 on Vista – Adding .svc Handler

WCF on IIS7 on Vista - Adding .svc HandlerI’ve just formatted and reinstalled my computer yesterday. When I started to build a WCF Service on IIS 7 on my Vista machine, I got the following message:

Server Error in Application “Default Web Site/…”
HTTP Error 404.3 – Not Found

The page you are requesting cannot be served because of the extension of the configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

This is what I did to have it work:

  1. Start the command window (cmd) as an Administrator.
  2. Navigate to:
    C:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\

    In case you are running on a 64Bit machine, than navigate to:

  3. C:\windows\Microsoft.Net\Framework64\v3.0\Windows Communication Foundation\

  4. Run the following command: ServiceModelReg –i

After some messages on the console window…

WCF on IIS7 on Vista - Adding .svc Handler

your service should now work.


Add comment
facebook linkedin twitter email


  1. Nathan6 בינואר 2009 ב 1:55

    Thanks, you saved me a few hours of headaches when I encountered the same problem.

    Do you know if the same fix would apply to a 2003 server running .net 3.0 framework?

  2. John1 בפברואר 2009 ב 9:12

    Awesome tip, was building a demo in Azure today with a Silverlight app talking to a WCF service and hit this one.
    The difference with Azure is it doesn't run in Casini like your normal Silverlight app so I had never registered WCF service.
    Adding you to my top tips now.
    thanks again.

  3. Oxygen3 בפברואר 2009 ב 13:02

    It works for me! Thank you very much! 🙂

  4. Rich15 בפברואר 2009 ב 16:09

    Excellent…worked like a charm. Thx!

  5. Karan17 במרץ 2009 ב 12:05

    Using framework 3.5,this command does not exist, any suggestion.

  6. Matt M19 במרץ 2009 ב 20:48

    Legend. Thank you!

  7. GooAooD8 באפריל 2009 ב 10:28

    Thank you.

  8. Arin18 באפריל 2009 ב 20:47

    Thanks a lot……

  9. Sigtryggur22 באפריל 2009 ב 21:55

    Excellent, instant solution, thanks.

  10. Chris3 במאי 2009 ב 5:41

    Thanks! This saved me adding these by hand. I wonder why MS didn't add, or atleast update, mappings that didn't exist when the upgrade was installed. Anyway, thanks for the note.

  11. Phil Ricketts20 במאי 2009 ב 17:42

    This worked a treat, thanks. Vista Business x64-bit ASP.net 3.5 SP1.

  12. the9 ביוני 2009 ב 2:46

    thnx, got it working with this tip.
    Vista Business x64-bit ASP.net 3.5 SP1, IIS 7

  13. Incredible26 ביוני 2009 ב 11:14

    Thanks a lot …
    Now, I'll survive this day 🙂

  14. Philip Quarles5 ביולי 2009 ב 16:16


    Thank you very much! It worked just as you described above.

    I am running Vista Ultimate, x32-bit, ASP.net 3.5 SP1 and IIS7


  15. Dude8 ביולי 2009 ב 19:29

    Please change the "–" character in this page. Cannot copy paste the "ServiceModelReg –i" command, it will fail. The "–" character is not a real dash.

    "–" is not "-"

  16. overlord14 ביולי 2009 ב 18:26


    didn't belive this would work.

    Thank you

  17. Mike29 באוגוסט 2009 ב 2:18

    Thanks Guy for this.

    What Dude says is true, the copy/paste dash is not real.

  18. Mitch29 באוגוסט 2009 ב 8:11

    Finally, got wcf working again. thanks for the post.

  19. SmithJ20 במאי 2010 ב 22:07

    4QRLSh Lol lol lool lol ha-ha! Lol lol lol?

  20. Melina195925 ביולי 2011 ב 9:07

    Hey sehr schönes Blog! Man .. Schöne .. Amazing .. Ich werde Bookmark Ihrem Blog und nehmen Sie die Feeds auch …

Comments are closed.