How to troubleshoot “System.Web.HttpException (0x80004005): File does not exist”?

The reason is likely that the service has not been specified. When a web server (the local dev one as well) recieve a request for a folder they look inside that folder for the default page (usually called: index.htm, index.html, default.asp, default.aspx, etc) and present that (unless you are using a REST based service description). When you run from VS the debug will take you straight to the actual service.

In this case because you have built a service you need to specify the location of the exact service i.e. http://localhost:3994/service.svc.

Also: If you start a debug session and then change the URL to http://localhost:3994/ you should be able to check this is the case with the debugger.

Leave a Comment