WCF exeption??????
-
Hi all, I am trying to build a game based on the WPF and WCF. Client and server work fine on my machine(Vista 64), they are connected successful. But when I am trying to run server on the LAN machine(WinXp) and client on my machine(Vista 64), after calling service metod from client application I get exception: "Fail agreement of mode security SOAP from "http://192.168.0.55:8080/Pf\\" for object "http://192.168.0.55:8080/Pf\\"."???? Help please to resolve the problem.
-
Hi all, I am trying to build a game based on the WPF and WCF. Client and server work fine on my machine(Vista 64), they are connected successful. But when I am trying to run server on the LAN machine(WinXp) and client on my machine(Vista 64), after calling service metod from client application I get exception: "Fail agreement of mode security SOAP from "http://192.168.0.55:8080/Pf\\" for object "http://192.168.0.55:8080/Pf\\"."???? Help please to resolve the problem.
Have you configured the security on your bindings yet? I'd try turning the security off on both client and server bindings add see if that allows calls through. Replace the WSHttpBinding with the type of binding you're using and set the security mode to None.
WSHttpBinding binding = new WSHttpBinding(SecurityMode.None);
or if the binding is in a config file:
<security mode="None"/>
If that works then your problem is with security.
-
Have you configured the security on your bindings yet? I'd try turning the security off on both client and server bindings add see if that allows calls through. Replace the WSHttpBinding with the type of binding you're using and set the security mode to None.
WSHttpBinding binding = new WSHttpBinding(SecurityMode.None);
or if the binding is in a config file:
<security mode="None"/>
If that works then your problem is with security.
Brian thanks for help. Here is the cut of my server app.config file:
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IPref">
<security mode="None"/>
</binding>
</wsDualHttpBinding>
</bindings>Here is is the cut of my client app.config file:
<bindings> <wsDualHttpBinding> <binding name="WSDualHttpBinding\_IPref" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" /> <security mode="Message"> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /> </security> </binding> </wsDualHttpBinding> </bindings>
If I change
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>to
<security mode="None">
</security>It fails with something like this: "Operation of opening doesn't complete in the course of defined period 00:01:00" :( even if the server and the client are running on my machine.
-
Brian thanks for help. Here is the cut of my server app.config file:
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IPref">
<security mode="None"/>
</binding>
</wsDualHttpBinding>
</bindings>Here is is the cut of my client app.config file:
<bindings> <wsDualHttpBinding> <binding name="WSDualHttpBinding\_IPref" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" /> <security mode="Message"> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /> </security> </binding> </wsDualHttpBinding> </bindings>
If I change
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>to
<security mode="None">
</security>It fails with something like this: "Operation of opening doesn't complete in the course of defined period 00:01:00" :( even if the server and the client are running on my machine.
It may need the message element (both files):
<security mode="None">
<message clientCredentialType="None" negotiateServiceCredential="false"
algorithmSuite="Default" />
</security>I did a quick test with the binding. The server on vista64 and client on XP. After turning off the firewalls it worked. The only difference is I didn't use a config file, just hard coded everything for the test. If you'd like I can post it.
-
It may need the message element (both files):
<security mode="None">
<message clientCredentialType="None" negotiateServiceCredential="false"
algorithmSuite="Default" />
</security>I did a quick test with the binding. The server on vista64 and client on XP. After turning off the firewalls it worked. The only difference is I didn't use a config file, just hard coded everything for the test. If you'd like I can post it.
Ok, I'll try to do this. If it's possibly, please send me to losqut@yandex.ru