I am integrating old non-MVC code into an MVC 4 project. The old code had WCF services with .SVC extensions in the root and in the API subfolder that's subject to basic authentication.
At first, posts such as (http://mysite/myservice.svc/DoCommand) to all SVC files were giving 404 errors. Then I added this:
routes.IgnoreRoute("{allsvc}", new { allsvc = @"..svc(/.*)?" });
and the SVC files in the root of the site are now callable. But, the SVC files in the API sub-folder are now returning this:
<Error>
<Message>
No HTTP resource was found that matches the request URI 'http://mysite/API/myservice.svc/DoCommand'.
</Message>
</Error>
If I don't include the DoCommand, then I get the standard WCF info screen.
Oh, and lastly, this only happens in prod -- in development, going against localhost, all works fine.
Your help is greatly appreciated. Thanks.