0
我正在嘗試使用D3DotNetAPI創建Windows Phone 7應用程序。D3DotNetAPI的TypeLoadException
這裏是文檔的鏈接:D3DotNetAPI documentation link
我只是想跟隨樣本,並做到這一點:
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()
我不確定,但我的例外可以與this stack overflow answer
PS:相同的示例在Win32應用程序上正常工作。