twisterjosh

Hey guys,

I've been searching the forums but haven't found any answer.
Here's the deal, I have .NET 3.0 on my laptop, and I installed the WCF samples.
I can successfully build and run the Peer Channel Chat application, however, when I send a message, it does not send to the other clients. :( So it's not working... what do I have to do to get it to work I did not change any of the code.

What are the necessary steps needed to take before I can get this specific sample to run I noticed the links to the "One time setup for WCF samples", but all those steps were for IIS hosted services over http. This app is tcp only, if I have read the code correctly. So what is needed to get just this sample to run

I installed it on my work computer, and it works fine. (the server and the clients.) It just doesn't work on my laptop.

Also... I didn't know if Peer-to-Peer enabling had anything to do with it. If I have read the articles correctly, it is not needed for this sample because this sample uses a custom peer resolver. Nevertheless, I tried to install P2P in Add/Remove Programs and I got a "p2p could not be installed becase an extended error occured." heh. I guess that doesn't matter though, because it's not installed on my work computer yet the sample runs.

I'm sure I've just missed some sort of setup step Any pointers would be AWESOME. Thanks!

<josh/>




Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

Michael Olivieri

This might be a silly answer - but does is your firewall enabled and blocking that port




Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

twisterjosh

Unfortunately, no. I just tried that by completely turning off my firewall (offline), and it still didn't work... thanks for your reply though!

Any thoughts






Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

Shalini Joshi MSFT

Hi Josh,

I am assuming you are trying to run the Scenario\Peerchannel\Chat sample on all machines you have tested on (Note that that sample is a pure chat sample - no concept of client/server- not relevant, just wanted to point that out)

I am also assuming that both chat instances are on the same local machine

You are right, for a custom resolver sample, pnrp installation does not matter -

Question: Do the clients ever come online before you attempt to send a message to the mesh (An online event is triggered when a peer node has at least one neighbor) - if you look at the sample source, we handle this event by printing it out to the console - so you should be able to make out looking at the console.

If the nodes themselves are not being able to come online with each other in the first place, your messages will never get sent to the other nodes.

Let me know if you do not receive the Online event at all - in which case, we can try and diagnose what is causing hte nodes from knowing about each other- also what OS are you trying this on

-Shalini.






Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

twisterjosh

Thank you for your reply, Shalini.

Yes, it is the sample that you mentioned. (Scenario\Peerchannel\Chat). Both instances are indeed running on the same local machine, which is running Win XP SP2 (same as work PC.)

Very good point... the Online event is never raised.

Thank you for your help! Any ideas

Thanks,

Josh






Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

Shalini Joshi MSFT

1) Could you please email me (shalinij@microsoft.com) the output of your " ipconfig /all"

2) can you also enable tracing for both the resolver service and the clients and email me the generated .svclog files as well- instructions as under:

- Stop any running instances of the application. Enable tracing using instructions here: http://blogs.msdn.com/peerchan/archive/2006/10/01/Tip_3A00_-PeerChannel-diagnostics-using-WCF-Tracing_2F00_Message-Logging.aspx - You can modify the config there to rename svclog files for service/client resp

- Start the service,

- Start instance1, start instance2.

- Wait for about 15 secs - if no online, stop the apps.

- Please send me all generated .svclog files and I can take a look at those and see what's going on..(the error on trying to install the networking pack seems like something is wrong wiht the IP stack - I remember running into this some time back but can't be sure ) - anyhow the traces will have some more iformation for us.

Thanks for trying this out,

-Shalini






Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

twisterjosh

Thank you SO MUCH Shalini! I've e-mailed you all the requested information.
Thanks again!

<josh/>






Re: Windows Communication Foundation (Indigo) Peer Channel Chat Sample - Not working for me

twisterjosh

Ok guys, I got it to working.

The reason the sample was not working for me, was because IPv6 was not installed. When I tried to install it, I received a "an extended error has occurred." error - same error I got when I tried to enable P2P.
I did some searching, and found a solution that worked for me... although I don't know if it's the best one.

Anyways, what I did was in a CMD prompt:

- esentutl /g %windir%\security\Database\secedit.sdb (checks the integrity of the database)

The results failed. I tried to use the recovery option (/r), but that failed with an API error. So I used the repair option:

- esentutl /p %windir%\security\Database\secedit.sdb

The repair worked. I then proceeded to install IPv6:

- Right click on network connection, Properties, Install, select IPv6.

After a successful install, the Peer Channel Chat application worked swell. Thank you all so much for your help!!! :))