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!
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!