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.
[quoted text, click to view] "Softer" <softer@infoiasi.ro> wrote in message
news:D95C3D6B-C839-4019-9D06-A19A851CDE38@microsoft.com...
> 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!