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

No comments:

Post a Comment