title: Add WCF service to an ASP.NET MVC project
body: <p>I'm trying to add a WCF service to my existing ASP.NET MVC web application, but with the WCF Test Client application, I keep getting HTTP 404 for the URL to the .svc file.</p>
  
  <p>When I added the new WCF service to the project, it appeared to automatically make a bunch of changes to the web.config file. I tried hacking up my routes in global.asax file to ignore the .svc file, see if that helped &mdash; it didn't.</p>
  
  <p>I have also edited the WCF configuration settings with the editor tool in Visual Studio to add the basic http endpoint thing.</p>
  
  <p>I only need the WCF service for a very small part of my project to provide integration with another system that uses WCF extensively.</p>
  
  <p>UPDATE: Here is some output from the WCF Test Client application when I add the URL <a href="http://localhost/LabManagerDev/Development/SoftwareRequests.svc" rel="nofollow noreferrer">http://localhost/LabManagerDev/Development/SoftwareRequests.svc</a> in the provided dialog box.</p>
  
  <p>Error: Cannot obtain Metadata from <a href="http://localhost/LabManagerDev/Development/SoftwareRequests.svc" rel="nofollow noreferrer">http://localhost/LabManagerDev/Development/SoftwareRequests.svc</a>
  If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.  For help enabling metadata publishing, please refer to the MSDN documentation at <a href="http://go.microsoft.com/fwlink/?LinkId=65455" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkId=65455</a>.
  WS-Metadata Exchange Error
      URI: <a href="http://localhost/LabManagerDev/Development/SoftwareRequests.svc" rel="nofollow noreferrer">http://localhost/LabManagerDev/Development/SoftwareRequests.svc</a>
      Metadata contains a reference that cannot be
      resolved: '<a href="http://localhost/LabManagerDev/Development/SoftwareRequests.svc" rel="nofollow noreferrer">http://localhost/LabManagerDev/Development/SoftwareRequests.svc</a>'.
      The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The
      authentication header received from the server was 'Negotiate,NTLM'.
      The remote server returned an error: (401) Unauthorized.
  HTTP GET Error
      URI: <a href="http://localhost/LabManagerDev/Development/SoftwareRequests.svc" rel="nofollow noreferrer">http://localhost/LabManagerDev/Development/SoftwareRequests.svc</a>
      There was an error downloading '<a href="http://localhost/LabManagerDev/Development/SoftwareRequests.svc" rel="nofollow noreferrer">http://localhost/LabManagerDev/Development/SoftwareRequests.svc</a>'.
      The request failed with HTTP status 404: Not Found.</p>