title: SVC in SharePoint Foundation 2010 Gives HTTP 400: Bad Request
body: <p>A bit of background. I've worked with ASMX and PageMethods, but no WCF so far. I'm developing on Win 7 Pro with Windows Communication Foundation HTTP Activation installed as well as Windows Communication Foundation HTTP Non-Activation installed. I'm also deploying to SharePoint Foundation 2010 that is also running on my machine.</p>
  
  <p>I'm developing custom web service for SharePoint that is accessing non-SharePoint data. I found several articles on creating a WCF service in SharePoint. I followed the instructions in this one, <a href="http://answers.oreilly.com/topic/1404-how-to-customize-wcf-services-in-sharepoint-2010" rel="nofollow">http://answers.oreilly.com/topic/1404-how-to-customize-wcf-services-in-sharepoint-2010</a></p>
  
  <p>I'm able to load the MEX, e.g. <a href="http://mySite.com/Services/MyService.svc/MEX" rel="nofollow">http://mySite.com/Services/MyService.svc/MEX</a>, but if I go to <a href="http://mySite.com/Services/MyService.svc" rel="nofollow">http://mySite.com/Services/MyService.svc</a> I get an HTTP 400 Bad Request.</p>
  
  <p>Looking in the Event Viewer logs, there is nothing related to this error. IIS Logs show only the GETs to the service.</p>
  
  <p>I'm assuming it's either not properly deployed or there's some permissions issue.</p>