WP8 中使用HTML Agility Pack與友盟分享SDK遇到的 System.Xml.XPath加載問題


今晚在嘗試使用友盟最新的社交分享SDK時,按照官方Demo,並未做多少多少改動,就是去除了對微信、臉書和推特的分享。然后運行之后就一直報錯 :

{System.IO.FileLoadException: Could not load file or assembly 'System.Xml.XPath, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

File name: 'System.Xml.XPath, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

   at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)

   at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)}

在項目中使用了nuget獲取的HTML Agility Pack 和友盟分享SDK。

找到了一樣的錯誤:http://ylad.codeplex.com/discussions/430095 ( 示例 ),是因為System.Xml.XPath 沖突了。好吧,他是建議使用HTML Agility Pack時不要使用System.Xml.XPath,轉而使用LinqToXml替代。 目前我並沒有繼續往下做。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM