Basic Samples
Hi,
For some time now I've been trying to get NetPeerTcp samples to run from the .Net 3 SDK. Any code I've written including the basic IBroadcast sample provided always fail on the service host Open() method. Always it raises an exception with the inner exception stating: {"The system detected an invalid pointer address in attempting to use a pointer argument in a call"}
I'm not even sure where to begin trying to figure out how to resolve this problem. Can you point me in the right direction?
I'm on XP SP2 with the PNRPv2 update applied using Visual Studio 2005 behind a NAT firewall.
Output from various commands are below:
netsh p2p pnrp cl sh st *
Scope Id Addr State Name
-- -- -- - --
3 4 1 Virtual LinkLocal_{1E26DD7C-855C-4490-993A-C92CA0B6F8D0}
Synchronize server:
Use Server: Disabled
Use SSDP: Not used
Use Persisted cache: Not used
Scope Id Addr State Name
-- -- -- - --
1 0 1 Virtual Global_
Synchronize server: pnrpv2.ipv6.microsoft.com;pnrpv21.ipv6.microsoft.com
Use Server: Not used
Use SSDP: Not used
Use Persisted cache: Not used
****************************************************
netsh interface ipv6 show teredo
Teredo Parameters
Type : client
Server Name : default
Client Refresh Interval : default
Client Port : default
State : qualified
Type : teredo client
Network : unmanaged
NAT : restricted
Help!
Thanks very much.
Regards,
Roland Rodriguez
as a follow up, i'm getting a new message today saying that the pnrp service isn't started and indeed i can see that it's not.
now i get the following output:
net start pnrpsvc
The Peer Name Resolution Protocol service is starting...
The Peer Name Resolution Protocol service could not be started.
A system error has occurred.
System error 515 has occurred.
The system cannot find message text for message number 0x203 in the message file for BASE.
help please?
tia,
Roland Rodriguez
thanks for your assistance, the output is as follows:
SERVICE_NAME: pnrpsvc
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 1 STOPPED
(NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : -2140995069 (0x80630203)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
attempting to start the pnrp service fails and the following error is logged in the event log:
The description for Event ID ( 102 ) in Source ( PNRPSvc ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: 0x80630203.
I'm glad to hear that you can get back on track. I'm really sorry it took more than a month to get to the bottom of this issue. Hopefully this forum post moves up in the search rankings for pnrp and "won't start"/"doesn't start"
. We tracked down one source of this problem on Vista but haven't managed to track down what can cause it on XPSP2 so any information you could share about your setup would be helpful.
Good luck and feel free to post any other questions you have,
Eliot
Hi Roland,
Have you stopped the PNRP Service before getting this error?
When you get that error, can you please run the following command from elevated window?
"netstat -a".
If it is ok, please send the output of that command.
Thanks,
Pritam