TypeLoadException with D3DotNetAPI
本文关键字:D3DotNetAPI with TypeLoadException | 更新日期: 2023-09-27 18:28:45
我正在尝试使用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()
我不确定,但我的异常可能与这个堆栈溢出答案类似
附言:同样的例子在Win32应用程序上运行良好。
自动应答:
ISerializable在WP中不可用(WP=.NET框架的一部分)