DCSIMG
WCF on IIS7 on Vista - Adding .svc Handler - Guy Burstein's Blog

Guy Burstein's Blog

Developer Evangelist @ Microsoft

News

Guy Burstein The Bu

Disclaimer
Postings are provided 'As Is' with no warranties and confer no rights.

Guy Burstein LinkedIn Profile

TwitterCounter for @bursteg

Links

Articles

Blogs I Read

WCF on IIS7 on Vista - Adding .svc Handler

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.

Enjoy!

Comments

Najlepsze Programy, Recenzje, Informacje. » Blog Archive » WCF on IIS7 on Vista - Adding .svc Handler - Guy Burstein's Blog said:

Pingback from  Najlepsze Programy, Recenzje, Informacje.  » Blog Archive   » WCF on IIS7 on Vista - Adding .svc Handler - Guy Burstein's Blog

# December 2, 2008 2:46 AM

WCF on IIS7 on Vista - Adding .svc Handler - Guy Burstein's Blog said:

Pingback from  WCF on IIS7 on Vista - Adding .svc Handler - Guy Burstein's Blog

# December 2, 2008 3:28 AM

Nathan said:

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?

# January 6, 2009 1:55 AM

John said:

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.

# February 1, 2009 9:12 AM

Oxygen said:

It works for me! Thank you very much! :)

# February 3, 2009 1:02 PM

Rich said:

Excellent...worked like a charm.  Thx!

# February 15, 2009 4:09 PM

satronaut said:

comment5,

# March 4, 2009 1:38 PM

Richard said:

comment1,

# March 5, 2009 1:46 PM

Karan said:

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

# March 17, 2009 12:05 PM

Matt M said:

Legend. Thank you!

# March 19, 2009 8:48 PM

GooAooD said:

Thank you.

# April 8, 2009 10:28 AM

Arin said:

Thanks a lot......

# April 18, 2009 8:47 PM

Sigtryggur said:

Excellent, instant solution, thanks.

# April 22, 2009 9:55 PM

Chris said:

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.

# May 3, 2009 5:41 AM

Phil Ricketts said:

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

# May 20, 2009 5:42 PM

the said:

thnx, got it working with this tip.

Vista Business x64-bit ASP.net 3.5 SP1, IIS 7

# June 9, 2009 2:46 AM

Incredible said:

Thanks a lot ...

Now, I'll survive this day :)

# June 26, 2009 11:14 AM

Philip Quarles said:

Guy,

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

Philip

# July 5, 2009 4:16 PM

Dude said:

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 "-"

# July 8, 2009 7:29 PM

overlord said:

Wow,

didn't belive this would work.

Thank you

# July 14, 2009 6:26 PM

Brownsblogging said:

WCF on IIS 7/Vista

# July 21, 2009 6:12 AM

Mike said:

Thanks Guy for this.

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

# August 29, 2009 2:18 AM

Mitch said:

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

# August 29, 2009 8:11 AM

WCF Screencast – Creating your first WCF service « genuinebasil said:

Pingback from  WCF Screencast – Creating your first WCF service « genuinebasil

# October 3, 2009 9:51 PM

WCF Screencast – Hosting WCF Services in IIS « genuinebasil said:

Pingback from  WCF Screencast – Hosting WCF Services in IIS « genuinebasil

# October 3, 2009 9:57 PM

Never give up, never surrender! ?? Blog Archive » WCF on IIS7 on Vista - Adding .svc Handler said:

Pingback from  Never give up, never surrender!  ?? Blog Archive   » WCF on IIS7 on Vista - Adding .svc Handler

# October 14, 2009 6:33 AM

SmithJ said:

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

# May 20, 2010 10:07 PM

Rabbit Cabriolet Aftermarket Car Body Parts Volkswagen, Aftermarket 2000 Volkswagen Cabrio Book said:

Pingback from  Rabbit Cabriolet Aftermarket Car Body Parts Volkswagen, Aftermarket 2000 Volkswagen Cabrio Book

# May 20, 2010 10:35 PM

Blizzard Magnum Alpine Ski, Magnum Pacifica Pt Cruiser said:

Pingback from  Blizzard Magnum Alpine Ski, Magnum Pacifica Pt Cruiser

# May 21, 2010 12:48 AM

Se300 Used Audio, Se300 Clearance Top - 134.tijuanareader.com said:

Pingback from  Se300 Used Audio, Se300 Clearance Top - 134.tijuanareader.com

# May 24, 2010 7:22 PM

Kingswood Country, Kingswood Blubster - 122.computeronlinebingo.com said:

Pingback from  Kingswood Country, Kingswood Blubster - 122.computeronlinebingo.com

# May 25, 2010 9:18 PM

Ion 1 Factory 2002 L100 1997 Saturn Sc1, Sc10 Equipment - 54.eumreborn.com said:

Pingback from  Ion 1 Factory 2002 L100 1997 Saturn Sc1, Sc10 Equipment - 54.eumreborn.com

# May 25, 2010 9:39 PM

Melina1959 said:

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

# July 25, 2011 9:07 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: