IIS Express Error http 404.17 – not found running a WCF service

Ricker Silva picture Ricker Silva · Mar 5, 2014 · Viewed 11.1k times · Source

I just created a WCF Service Application in VS2013 with framework 3.5. for exposing some methods I have in a class library project.

Everything went fine but when I tried to see if the service runs, it doesn't. Instead I got the next error.

HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler.

Most likely causes: The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try: If you want to serve this content as a static file, add an explicit MIME map.

I have dealt with it on IIS, but now in IIS Expres I'm kinda lost.

I don't have IIS installed on this machine since I'm using a remote one, but I need to debug some things and I'm stuck. Thanks for any help.

I also did run servicesmodelreg -i with visual command prompt, but error persists.

UPDATE

It may be usefull to clarfy it only happens in IIS Express so it is impacting development. I have VS2013 updated to the latest patch running on Win 8.1 64bit

Answer

Alessandro Cunsolo picture Alessandro Cunsolo · Mar 11, 2014

Try to run "C:\Program Files\IIS Express>Wscript.exe WCF35Setup.js install" that is a script for enabling WCF 3.5 service on IIS Express. Reference : http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-75-express-readme