locked
PeerNameRegistration.Update problem RRS feed

  • Question

  • Hi all!

     

    I have a problem with the PeerNameRegistration.Update method(). I have set the UseAutoEndPointSelection property to false, then written the following code:

     

    peerNameRegistration.EndPointCollection.Add((IPEndPoint)nat.ConnectionInfo.EndPoint);

     

    The PeerNameRegistration.Start() method works correctly. However,  when I try to call the Update method, I obtain the following PeerToPeerException:

     

    When auto endpoint selection is disabled, you must specify either a data blob or specify explicit list of endpoints to register.

     

    I have tried to set the PeerNameRegistration.EndPointCollection property again before calling the Update method, but the problem remains. I have noticed that, setting UseAutoEndPointSelection to true, no exception is thrown.

     

    Could anyone help me?

    Thanks in advance.

    Saturday, January 12, 2008 5:41 PM

Answers

  • During registration either the endpoint collection or the data blob must be set. Strangely enough, during an update both the endpoint collection AND data blob must be set. I'm not sure why this is.

     

    Monday, January 14, 2008 8:31 PM