Method not allowed running a simple indigo service (Solved)
I've built a simple ping service, and i'm hosting it in the cassini web server included in visual studio. I'm consuming the service from a simple console application.
I've disabled dynamic ports on the server and i'm running my service in port 8080. Everytime that i try to run the service i get the following message : "The remote server returned an unexpected response: (405) Method not allowed.".
This message appeared after disabling NTLM authentication in the Start Options of the service. I have disabled NTLM authentication because i was getting this error : "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The server authentication schemes are 'NTLM'." (i have found this info in Steve Maine's blog athttp://hyperthink.net/blog/default.aspx)
Client.cs :
using System; using System.ServiceModel; namespace WCFClient |
PingService.cs :
using System; using System.ServiceModel; [ServiceContract] publicclassPingService :IPingService |
Server Web.config : Client App.config :<?xmlversion="1.0"encoding="utf-8"?> Tnks for any help, i'm getting nuts with this problem :-(
<?xmlversion="1.0"?>
<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.serviceModel>
<services>
<servicetype="PingService">
<endpoint
address=http://localhost:8080/WCFService
contract="IPingService"
binding="basicHttpBinding"/>
</service>
</services>
</system.serviceModel>
<system.web>
<compilationdebug="true"/>
</system.web>
</configuration>
<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.serviceModel>
<client>
<endpoint
address=http://localhost:8080/WCFService/
binding="basicHttpBinding"
contract="IPingService"/>
</client>
</system.serviceModel>
</configuration>

