error 405 method not allowed
Bonjour a tous,
j'ai un wcf hébergé sur IIS, et lorsque j'appel une méthode de ce web service depuis une application windows mobile j'ai une erreur
Citation:
error 405 method not allowed
j'accède au wcf en utilisant IE de l'émulateur http://ip/site/service.svc
Citation:
at system.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message)\r\n
at Microsoft.Tools.ServiceModel.CFClientBase`1.getReply(Message msg)\r\n at Microsoft.Tools.ServiceModel.CFClientBase`1.Invoke[TREQUEST,TRESPONSE](CFInvokeInfo info, GetUpdateInfoRequest request)\r\n
at UpdateServiceClient.GetUpdateInfo(GetUpdateInfoRequest request)
at UpdateServiceClient.GetUpdateInfo(String appName, String maj, String min)
at SmartDeviceProject1.Form1.btCheck_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at SmartDeviceProject1.Program.Main()\r\n"
voici le web.config
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<services>
<service behaviorConfiguration="ServiceBehavior" name="WSUpdate.UpdateService">
<endpoint address="http://localhost/updateservicesite/"
binding="basicHttpBinding" contract="WSUpdate.IUpdateService" />
<endpoint binding="wsHttpBinding" bindingConfiguration="" contract="WSUpdate.IUpdateService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost/updateservicesite/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors> |
j'espère que vous pourrais m'aider parce que la je sais pas quoi faire
merci