问题:运行时出现以下错误:出现未处理的“System.Xml.XmlException”类型的异常出现在 system.xml.dll 中
2017-12-06 15:32
1036 查看
在加载xml文档时,运行出现未处理的“System.Xml.XmlException”类型的异常出现在 system.xml.dll 中,在检查xml文档格式以及代码正确后,网上查阅后发现是xml文档保存时格式编码有问题,我是通过vs2015打开的文档,默认保存的文档时utf-8格式。打开xml文档发现文档本身并不是utf-8编码格式,需要把xml格式转成utf-8.
解决:vs2015 文件-》高级保存模式-》选择utf-8
解决:vs2015 文件-》高级保存模式-》选择utf-8
相关文章推荐
- 在用c++读取xml文件时,运行时出现以下错误:出现未处理的“System.Xml.XmlException”类型的异常出现在 system.xml.dll 中
- 使用过多的递归出现错误,“System.StackOverflowException”类型的未经处理的异常在 mscorlib.dll 中发生
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- 未处理的“System.FormatException”类型的异常出现在 mscorlib.dll 中
- ”System.InvalidOperationException”类型的未经处理的异常出现在 mscorlib.dll 中
- C#之解决 未处理的“System.InvalidOperationException”类型的异常出现在 System.dll中...
- 解决vb.net 2003:未处理的“System.NullReferenceException”类型的异常出现在 system.data.dll 中
- “System.ArgumentException”类型的未经处理的异常出现在 mscorlib.dll 中。
- 未处理的“System.FormatException”类型的异常出现在 mscorlib.dll 中。
- dataType参数不能为空,未处理的“System.ArgumentNullException”类型的异常出现在 mscorlib.dll 中
- 处理[未处理的“System.StackOverflowException”类型的异常出现在 System.Windows.Form.dll]异常
- 未处理的“System.Data.SqlClient.SqlException”类型的异常出现在 system.data.dll 中。
- C#之解决 未处理的“System.InvalidOperationException”类型的异常出现在 System.dll中...
- 在 System.InvalidOperationException 中第一次偶然出现的“System.Xml.dll”类型的异常
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll(转)
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- “System.StackOverflowException”类型的未经处理的异常出现在 mscorlib.dll 中。
- “System.StackOverflowException”类型的未经处理的异常在 MySql.Data.dll 中发生”的错误处理