Reputation: 1351
Im using this example as a guide: http://geekswithblogs.net/michelotti/archive/2010/08/21/restful-wcf-services-with-no-svc-file-and-no-config.aspx
I've created the site by following that example and it works fine in local development (VS 2010). Once I deploy to my server (Windows 2008 R2, IIS 7) it tells me it's not found (404).
Is there a setting in IIS that Im missing? I have it set up exactly like regular web entry.
Has anyone ever run into something like this?
Thanks!
Upvotes: 3
Views: 556
Reputation: 364249
Check that your app pool hosting the service uses .NET 4 and integrated pipeline. Also check that WCF 4 handlers are registred in IIS - ServiceModelReg.exe tool.
Upvotes: 1
Reputation: 1221
I did have the same problem, but mine was fixed two different ways.
Here's something the helped someone else.
http://gavinmckay.wordpress.com/2009/11/19/wcf-rest-url-request-returns-a-404-error/
What I had to do was register my .svc with the aspnet_isapi.dll. Is the web.config the same from the dev to the dev to the live? Here is something that helped me when I had the problem.
Hope these links help.
Upvotes: 2