我有一个WCF服务托管在Windows服务上,并使用BasicHttp端点为连接到它的Windows Mobile设备提供服务。WCF请求失败,HTTP状态405:方法不允许
问题是用Device Emulator。我可以连接到该服务并且无任何问题地使用它,但是使用实际的设备。我收到错误:
WCF The request failed with HTTP status 405: Method Not Allowed.
我已经使用以下代码来实现该服务。
BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
basicHttpBinding.UseDefaultWebProxy = false;
m_ServiceHost.AddServiceEndpoint(typeof(IKooft), basicHttpBinding, "KooftService");
m_ServiceHost.Open();
我该如何解决这个问题?
正如我所提到的,它托管在Windows服务应用程序而不是IIS上。 – mrtaikandi 2009-04-04 11:37:51