404 error in a REST WCF service

I created my first WCF REST service the other day and was getting a 404 error when I deployed the service to our server.  After some research I found the solution here:

http://www.west-wind.com/weblog/posts/2008/Apr/10/WCF-REST-Configuration-for-ASPNET-AJAX-and-plain-REST-Services

I needed to add:

Factory="System.ServiceModel.Activation.WebServiceHostFactory"

to MyService.svc <%@ ServiceHost markup.

There is also a very good write up on WCF REST service design here:

http://msdn.microsoft.com/en-us/library/dd203052.aspx

Comments

Popular posts from this blog

ToMethodObject Refactoring

How to unlock a file in Team Foundation Server(TFS)

Show/Hide formatting text in MS Word 2010