title: Public WCF service requires authentication, despite no security being specified
body: <p>I have published a WCF service (<code>MyService.svc</code>) on an ASP.NET site, in a sub-folder called <code>WebServices</code>.</p>
  
  <p>When running on the local ASP.NET web server it works fine. When published to an IIS-run site and I try to access, for example, <code>/WebServices/MyService.svc/jsdebug</code>, I get <code>401 Unauthorized</code>. The rest of the site works fine.</p>
  
  <p>Does anyone have any idea why?</p>
  
  <hr>
  
  <p>Here are the contents of <code>MyService.svc</code>:</p>
  
  <pre><code>&lt;%@ServiceHost 
      Language="C#"
      Debug="true" 
      Service="MyApp.Core.MyService, MyApp.Core"
      Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory"
  %&gt;
  </code></pre>
  
  <p><code>MyApp.Core.MyService</code> is a class implementing <code>IMyService</code> (which has the attribute <code>ServiceContract</code> and method declarations with the attribute <code>OperationContract</code>).</p>