P2P::System.Net.Peer2Peer error

G

Guest

Hi
I have been installed Longhorn, alfa version from PDC 2003. I tryed to install Visual Studio 8.0 "Whidbey", version Beta March 2004, under Longhorn and doesen't work. :
I instaled Whidbey under XP and works well

In .Net Framework 1.2 from Longhorn there is a namespace called System.Net.PeerToPeer in \Windows\Microsoft.Net\Windows\v6.0.4030\System.Net.PeerToPeer.dl

Whidbey come with .Net Framework 2.0, but System.Net.PeerToPeer no longer exist. :

I have copied System.Net.PeerToPeer.dll under XP, I start a basically C# project in Whidbey and added System.Net.PeerToPeer.dll as reference=>Compiled and run => all works well
I added following code on Form1_Load() method

System.Net.PeerToPeer.Cloud c = System.Net.PeerToPeer.CloudWatcher.GetGlobalCloud()

Compiled => This warning
Priority = "Normal", Category = "Warning", Default order = "0", , Description = "Reference to type 'System.Collections.Generic.List' claims it is defined in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.40301\mscorlib.dll', but it could not be found", File = "c:\Work\p2p\dll\System.Net.PeerToPeer.dll", , (null) = "10",

Files mscorlib.dll and System.Net.PeerToPeer.dll are both there

Run=>An exception

Exception:[System.TypeInitializerException] {"The type initializer for 'System.Net.PeerToPeer.CloudManager' threw an exception."
Data: {System.Collections.ListDictionaryInternal
HyperLink:nul
InnerException: {"Could not load type 'System.Collections.Generic.List' from assembly 'mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
Message:"The type initializer for 'System.Net.PeerToPeer.CloudManager' threw an exception.
Source: "System.Net.PeerToPeer
StackTrace: " at System.Net.PeerToPeer.CloudManager.GetGlobalCloud(
at System.Net.PeerToPeer.CloudWatcher.GetGlobalCloud(
at P2PChat.Form1.ResolveInPnrp(String PeerName) in c:\\work\\whidbey\\p2pchat\\p2pchat\\form1.cs:line 5
at P2PChat.Form1.Form1_Load(Object sender, EventArgs e) in c:\\work\\whidbey\\p2pchat\\p2pchat\\form1.cs:line 3
at System.Windows.Forms.Form.OnLoad(EventArgs e
at ...et
TargetSite: {System.Net.PeerToPeer.Cloud GetGlobalCloud()

I specify that System.Net.PeerToPeer.dll have following informations
Runtime Version: 1.2.3070
Specific Version: Fals
Strong Name: Tru
Version: 6.0.4051.

I think it search for mscorlib.dll version 1.2? Did it

Could someone help me? Any help would be apreciate

However if I try to add System.Net.PeerToPeer as reference in VS 2003 and same code I've got this exception
An unhandled exception of type 'System.TypeLoadException' occurred in system.windows.forms.dl
Additional information: Error: Signature has invalid ELEMENT_TYPE_* (element type: 0

Thanks for any help!
 
G

Geogy Samuel [MSFT]

The System.Net.PeerToPeer.dll is only available in the PDC release of
Longhorn. To be able to use this functionality, for now you are limited to
using the environment .Net Framework provided by Longhorn PDC release. The
binaries (.Net Framework and System.Net.PeerToPeer.dll) are strongly
dependent on the versions and will not work if they are mismatched- so
please try to use the LH PDC release as is.

Please let us know if you continue to have problems with it.

Geogy

--
This posting is provided "AS IS" with no warranties, and confers no rights.

Softer said:
Hi!
I have been installed Longhorn, alfa version from PDC 2003. I tryed to
install Visual Studio 8.0 "Whidbey", version Beta March 2004, under
Longhorn and doesen't work. :(
I instaled Whidbey under XP and works well.


In .Net Framework 1.2 from Longhorn there is a namespace called
System.Net.PeerToPeer in
\Windows\Microsoft.Net\Windows\v6.0.4030\System.Net.PeerToPeer.dll

Whidbey come with .Net Framework 2.0, but System.Net.PeerToPeer no longer
exist. :(

I have copied System.Net.PeerToPeer.dll under XP, I start a basically C#
project in Whidbey and added System.Net.PeerToPeer.dll as
reference=>Compiled and run => all works well.
I added following code on Form1_Load() method:

System.Net.PeerToPeer.Cloud c =
System.Net.PeerToPeer.CloudWatcher.GetGlobalCloud();

Compiled => This warning:
Priority = "Normal", Category = "Warning", Default order = "0", ,
Description = "Reference to type 'System.Collections.Generic.List' claims
it is defined in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.40301\mscorlib.dll', but it could
not be found", File = "c:\Work\p2p\dll\System.Net.PeerToPeer.dll", ,
(null) = "10",

Files mscorlib.dll and System.Net.PeerToPeer.dll are both there.

Run=>An exception:

Exception:[System.TypeInitializerException] {"The type initializer for
'System.Net.PeerToPeer.CloudManager' threw an exception."}
Data: {System.Collections.ListDictionaryInternal}
HyperLink:null
InnerException: {"Could not load type 'System.Collections.Generic.List'
from assembly 'mscorlib, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'."}
Message:"The type initializer for 'System.Net.PeerToPeer.CloudManager'
threw an exception."
Source: "System.Net.PeerToPeer"
StackTrace: " at System.Net.PeerToPeer.CloudManager.GetGlobalCloud()
at System.Net.PeerToPeer.CloudWatcher.GetGlobalCloud()
at P2PChat.Form1.ResolveInPnrp(String PeerName) in
c:\\work\\whidbey\\p2pchat\\p2pchat\\form1.cs:line 52
at P2PChat.Form1.Form1_Load(Object sender, EventArgs e) in
c:\\work\\whidbey\\p2pchat\\p2pchat\\form1.cs:line 33
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at ...etc
TargetSite: {System.Net.PeerToPeer.Cloud GetGlobalCloud()}

I specify that System.Net.PeerToPeer.dll have following informations:
Runtime Version: 1.2.30703
Specific Version: False
Strong Name: True
Version: 6.0.4051.0

I think it search for mscorlib.dll version 1.2? Did it?

Could someone help me? Any help would be apreciate!

However if I try to add System.Net.PeerToPeer as reference in VS 2003 and
same code I've got this exception:
An unhandled exception of type 'System.TypeLoadException' occurred in
system.windows.forms.dll
Additional information: Error: Signature has invalid ELEMENT_TYPE_*
(element type: 0x

Thanks for any help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top