'System.Xml.XDocument'未在Windows 10 Mobile中正确加载 [英] 'System.Xml.XDocument' not loading correctly in Windows 10 Mobile

查看:61
本文介绍了'System.Xml.XDocument'未在Windows 10 Mobile中正确加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我2月初就开始研究我的一个项目,几乎完成了95%。我决定做一个小的内部BETA测试,但是当项目在发布配置中的Windows 10移动设备上运行时,它一直在崩溃。


最近,我能够跟踪发出并获取其错误消息,但这是非常令人困惑的。以下是错误消息:

 System.IO.FileLoadException:无法加载文件或程序集'System.Xml.XDocument,Version = 4.0.10.0,Culture = neutral ,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (来自HRESULT的异常:0x80131040)
at
...

我知道你会问我关于这个主题的更多信息,所以,在这里。该应用程序正在从网站下载Xml文件并使用"XElement.Parse()"进行解析。该错误发生在此处,并阻止应用程序在发布配置中运行
。另一个有趣的部分是这个问题只出现在ARM平台上,但不出现在x86或x64中。


请帮助我解决这个谜团,因为我期待为应用程序发布BETA。 / p>

谢谢,


Pranav。


解决方案

HiSgtPetrenko,


 我想在我身边重现你的问题,那么请你分享一些细节吗?例如,一个完整的代码,更好地分享它var OneDrive。  


Hello,

I started working on a project of mine early February and is almost 95% complete. I decided to do a small internal BETA testing but when the project was run on a Windows 10 Mobile device in Release Configuration, it kept crashing.

Recently, I was able to track the issue and get its error message but it is very confusing. Here is the error message:

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

I am aware that you will ask me for more information regarding this topic, so, here it is. The app is downloading a Xml file from a website and parsing it using 'XElement.Parse()'. The error occurs somewhere around here and prevents the app from working in the Release Configuration. Another intriguing part is that this issue occurs only in ARM Platform but not in x86 or x64.

Please help me solve this mystery as I am looking forward to release a BETA for the app.

Thanks,

Pranav.

解决方案

Hi ItsSgtPetrenko,

 I want to reproduce your issue on my side,so could you please share more details? For example, a complete code, better to share it var OneDrive.  


这篇关于'System.Xml.XDocument'未在Windows 10 Mobile中正确加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆