none
Problem with P2P RRS feed

  • Question

  • Hello,

    I am trying to run the "PeerTcp" sample on a fresh XP SP2 install.

    I installed and started the P2P windows service.

    However, when running the first receiver, I get the following exception.

    Any idea what could cause this?

    Thanks

     

    System.Net.Sockets.SocketException was unhandled
      Message="Unknown error (0x2ced)"
      Source="System.ServiceModel"
      ErrorCode=11501
      NativeErrorCode=11501
      StackTrace:
           at System.ServiceModel.AsyncResult.End(AsyncResult asyncResult)
           at System.ServiceModel.Channels.PeerNodeImplementation.SimpleStateManager.OperationBase.End(IAsyncResult result)
           at System.ServiceModel.Channels.PeerNodeImplementation.SimpleStateManager.EndOpen(IAsyncResult result)
           at System.ServiceModel.Channels.PeerNodeImplementation.SimpleStateManager.Open(TimeSpan timeout)
           at System.ServiceModel.Channels.PeerNodeImplementation.Open(TimeSpan timeout)
           at System.ServiceModel.Channels.PeerListenerFactory.OnOpen(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open()
           at System.ServiceModel.RefcountedListenerFactory.Open()
           at System.ServiceModel.InternalChannelListener`1.OnOpen(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
           at System.ServiceModel.BindingListener.OnOpen(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open()
           at System.ServiceModel.BindingManager.GetBindingListener[TChannel](ListenerSource`1 listenerSource)
           at System.ServiceModel.BindingManager.MaybeCreateListener(Boolean actuallyCreate, EndpointListener endpoint, BindingListener& result)
           at System.ServiceModel.EndpointListener.CreateListener()
           at System.ServiceModel.EndpointListener.InitializeListener()
           at System.ServiceModel.EndpointListener.OnOpen(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
           at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
           at System.ServiceModel.Channels.CommunicationObject.Open()
           at Microsoft.ServiceModel.Samples.BroadcastReceiver.Main() in C:\Program Files\Microsoft SDKs\Windows\v1.0\samples\Allsamples\WindowsCommunicationFoundation\TechnologySamples\Basic\Binding\Net\PeerTcp\Default\CS\receiver\receiver.cs:line 55
           at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()

    Friday, February 10, 2006 2:08 AM

All replies

  • I'm getting the same thing. I'm running the PeerTcp sample in the Jan CTP. The exception happens in the receiver when it tries to open the service host.

    Thanks,
    John

    Monday, February 13, 2006 4:28 AM
  • Thank you for trying out the peer channel.

    This is most likely happening because you are on a managed corporate network. Can you send me the output of netsh int ipv6 sh teredo?

    This should just work with a custom resolver, and PNRP name resolution will likely work better with the Feb CTP bits.

    Thanks,

    Ravi

    Tuesday, February 21, 2006 1:04 AM
  • Hey Ravi,

    I posted a reply over in this other thread....

    Thanks,
    John

    Tuesday, February 21, 2006 4:04 AM
  • Sorry, I missed that :)

    Could you confirm that you are running the app on the same machine with the custom resolver on the same machine as well? And, could you also check to see if you have any IP addresses by doing an "ipconfig - all". Feel free to respond with the output of ipconfig -all, and I'll take a look.

    Wednesday, February 22, 2006 10:07 PM
  • Can you explain why PNRP would not work on a corporate network?

    Is there a documentation that describes the requirements for PNRP to work?

    Is it better to implement a custom resolver?

    Friday, February 24, 2006 11:15 PM
  • PNRP will work well on the Internet. It will work through most NATs by virtue of using IPv6 as a transport.

    In a corporation, PNRP will work seamlessly if your application expects to work on the local subnet only (for instance, interactions amongst machines on the same subnet). If you expect to go beyond a subnet, then you will need to set one of the machines in the corporation as a "seed node" that other machines can initially bootstrap from. PNRP, however, does not ship on Server OS's yet, so you will need to use a client node for this purpose if you wanted to use PNRP at present.

    Alternatively, you can use a custom resolver which you can host on a server OS as well.

    Thursday, March 9, 2006 12:27 AM
  • Hi Ravi,

    What are we supposed to do now? I am getting the same error and I am using Feb CTP.

    This is the output of ipconfig /all:

    Windows IP Configuration

            Host Name . . . . . . . . . . . . : son15391
            Primary Dns Suffix  . . . . . . . : SONATA.LOCAL
            Node Type . . . . . . . . . . . . : Unknown
            IP Routing Enabled. . . . . . . . : No
            WINS Proxy Enabled. . . . . . . . : No
            DNS Suffix Search List. . . . . . : sonata.local

    Ethernet adapter Local Area Connection 2:

            Connection-specific DNS Suffix  . :
            Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet
            Physical Address. . . . . . . . . : 00-11-25-F1-44-08
            Dhcp Enabled. . . . . . . . . . . : No
            IP Address. . . . . . . . . . . . : 172.25.153.91
            Subnet Mask . . . . . . . . . . . : 255.255.0.0
            IP Address. . . . . . . . . . . . : fec0::1:211:25ff:fef1:4408%1
            IP Address. . . . . . . . . . . . : fe80::211:25ff:fef1:4408%5
            Default Gateway . . . . . . . . . : 172.25.0.2
            DNS Servers . . . . . . . . . . . : 172.25.0.20
                                                172.23.0.20
                                                fec0:0:0:ffff::1%1
                                                fec0:0:0:ffff::2%1
                                                fec0:0:0:ffff::3%1

    Tunnel adapter Teredo Tunneling Pseudo-Interface:

            Connection-specific DNS Suffix  . :
            Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
            Physical Address. . . . . . . . . : FF-FF-FF-FF-FF-FF-FF-FF
            Dhcp Enabled. . . . . . . . . . . : No
            IP Address. . . . . . . . . . . . : fe80::5445:5245:444f%4
            Default Gateway . . . . . . . . . :
            NetBIOS over Tcpip. . . . . . . . : Disabled

    Tunnel adapter Automatic Tunneling Pseudo-Interface:

            Connection-specific DNS Suffix  . :
            Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

            Physical Address. . . . . . . . . : AC-19-99-5B
            Dhcp Enabled. . . . . . . . . . . : No
            IP Address. . . . . . . . . . . . : fe80::5efe:172.25.153.91%2
            Default Gateway . . . . . . . . . :
            DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                                fec0:0:0:ffff::2%1
                                                fec0:0:0:ffff::3%1
            NetBIOS over Tcpip. . . . . . . . : Disabled

     

    Thanks

    Raja

    Tuesday, April 18, 2006 11:59 AM