积极答复者
求助用VS2013调试的时候出现这个关于System.Xml的异常怎么解决

问题
-
异常:已引发: "未能加载文件或程序集“System.Xml.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。" (System.IO.FileNotFoundException)
引发了一个 System.IO.FileNotFoundException: "未能加载文件或程序集“System.Xml.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。"
未加载System.Xml.pdb
原始位置:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
答案
-
如果你贴的错误吗没有错的话,是找不到XmlSerializers,这个比较奇怪,试一试删除引用,再重新添加一边。
如果是这样的
Could not load file or assembly '[Containing Assembly of MyType].XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
参考一下下面帖子的讨论:
XmlSerializer giving FileNotFoundException at constructor
http://stackoverflow.com/questions/1127431/xmlserializer-giving-filenotfoundexception-at-constructor
- 已标记为答案 windwindrun 2015年8月1日 1:45
- 取消答案标记 windwindrun 2015年8月1日 1:45
- 已标记为答案 windwindrun 2015年8月1日 1:56
全部回复
-
如果你贴的错误吗没有错的话,是找不到XmlSerializers,这个比较奇怪,试一试删除引用,再重新添加一边。
如果是这样的
Could not load file or assembly '[Containing Assembly of MyType].XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
参考一下下面帖子的讨论:
XmlSerializer giving FileNotFoundException at constructor
http://stackoverflow.com/questions/1127431/xmlserializer-giving-filenotfoundexception-at-constructor
- 已标记为答案 windwindrun 2015年8月1日 1:45
- 取消答案标记 windwindrun 2015年8月1日 1:45
- 已标记为答案 windwindrun 2015年8月1日 1:56