0

我正在尝试使用 D3DotNetAPI 创建 Windows Phone 7 应用程序。

这是文档的链接:D3DotNetAPI 文档链接

我只是想按照示例进行操作:

D3Explorer explorer = new D3Explorer(Region.EU);

//Career data for Battletag Gaidin#2380
Career myCareer = explorer.GetCareer("Gaidin", 2380);
MessageBox.Show("Has killed "+ myCareer.Kills.Monsters+" monstters, with "+ myCareer.Kills.Elites+" elites.");

我抛出这个异常:

System.TypeLoadException: Could not load type 'System.Runtime.Serialization.ISerializable' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
   at D3DotNetAPI.D3Explorer.TryGetData[T](String url, T& requestedObject)
   at D3DotNetAPI.D3Explorer.GetCareer(String battleTagName, Int32 battleTagCode)
   at d3.MainPage..ctor()

我不确定,但我的异常可能与此堆栈溢出答案类似

PS:相同的示例在 Win32 应用程序上运行良好。

4

1 回答 1

0

自动应答 :

ISerializable 在 WP 中不可用(WP = .NET 框架的一部分)

于 2013-08-22T08:19:37.417 回答