Geeks With Blogs
Asif Maniar Software Engineer

Ever been puzzled by the 404 - File or Directory not found error message when deploying a WCF service to a new .NET/IIS7 installation?

The error seems to indicate that the .svc file could not be located even though it’s present in the website.

This usually is a side effect of the server not having WCF Activation feature turned on. As soon as you turn it on in the Add features wizard your WCF service will be served correctly by IIS.

 

Posted on Tuesday, August 31, 2010 4:48 PM ASP.NET , wcf , IIS | Back to top


Comments on this post: WCF and IIS7: 404 - File or Directory not found

# re: WCF and IIS7: 404 - File or Directory not found
Requesting Gravatar...
I'm having this problem and the WCF Activation (.NET 3.5.1) is installed. Any other ideas?
Left by Kim on Feb 23, 2011 1:32 AM

# re: WCF and IIS7: 404 - File or Directory not found
Requesting Gravatar...
Got similar issue.
Fixed by changing my app pool settings from
Managed Pipeline=Classic to Managed Pipeline=Integrated
Left by Marc on Oct 03, 2012 9:55 AM

# re: WCF and IIS7: 404 - File or Directory not found
Requesting Gravatar...
Installation of WCF Activation solved my problem. Thank you very much.
Left by Vineeth on Dec 09, 2012 3:50 AM

# re: WCF and IIS7: 404 - File or Directory not found
Requesting Gravatar...
Hi, we have similar problem and can't be solved by installing WCF Activation. It turns out that the problem we are having is explained / fixed in the article
http://support.microsoft.com/kb/2520479

I'm just adding this comment to help future searcher found the fix.
Left by Chen Hendrawan on Dec 12, 2012 4:36 AM

# Thanks, this solved the problem I've spent several hours at!
Requesting Gravatar...
The problem was that there was no actual .svc and it was mapped with relativeAddress param.
Left by Alexander on Mar 07, 2014 11:32 AM

comments powered by Disqus

Copyright © Asif Maniar | Powered by: GeeksWithBlogs.net