title: WCF The request failed with HTTP status 405: Method Not Allowed
body: <p>I have a WCF service that has been hosted on a Windows Service and uses the BasicHttp endpoint to serve Windows Mobile devices that has been connected to it.</p>
  
  <p>The problem is that with the Device Emulator. I can connect to the service and using it without any problems, but with an actual device. I receive the error:</p>
  
  <blockquote>
    <p>WCF The request failed with HTTP status 405: Method Not Allowed.</p>
  </blockquote>
  
  <p>I have used following code to implement the service.</p>
  
  <pre><code>BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
  basicHttpBinding.UseDefaultWebProxy = false;
  
  m_ServiceHost.AddServiceEndpoint(typeof(IKooft), basicHttpBinding, "KooftService");
  m_ServiceHost.Open();
  </code></pre>
  
  <p>How can I solve this problem?</p>