Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WCF exeption??????

WCF exeption??????

Scheduled Pinned Locked Moved WPF
csharpwcfhelpwpfgame-dev
5 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Romiks
    wrote on last edited by
    #1

    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.

    B 1 Reply Last reply
    0
    • R Romiks

      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.

      B Offline
      B Offline
      Brian Griggs
      wrote on last edited by
      #2

      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.

      R 1 Reply Last reply
      0
      • B Brian Griggs

        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.

        R Offline
        R Offline
        Romiks
        wrote on last edited by
        #3

        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.

        B 1 Reply Last reply
        0
        • R Romiks

          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.

          B Offline
          B Offline
          Brian Griggs
          wrote on last edited by
          #4

          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.

          R 1 Reply Last reply
          0
          • B Brian Griggs

            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.

            R Offline
            R Offline
            Romiks
            wrote on last edited by
            #5

            Ok, I'll try to do this. If it's possibly, please send me to losqut@yandex.ru

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups