WP8 中使用HTML Agility Pack與友盟分享SDK遇到的 System.Xml.XPath加載問題
今晚在嘗試使用友盟最新的社交分享SDK時,按照官方Demo,并未做多少多少改動,就是去除了對微信、臉書和推特的分享。然后運(yùn)行之后就一直報錯 :
{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,轉(zhuǎn)而使用LinqToXml替代。 目前我并沒有繼續(xù)往下做。

浙公網(wǎng)安備 33010602011771號