【发布时间】:2019-04-09 23:43:14
【问题描述】:
我收到一个异常 "Could not load file or assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified." 堆栈跟踪 "at NLog.Config.XmlLoggingConfiguration..ctor(String fileName, Boolean ignoreErrors, LogFactory logFactory) at NLog.LogFactory.LoadLoggingConfiguration(String configFile)"。
我不确定的是,我在项目中有对 System.XML 的引用,但没有找到?我已经删除/重新添加了参考并阅读了与此类似的其他问题,但似乎无法解决这个问题。 NLog 是否需要找到此参考,或者我可以检查以查看可能缺少的依赖项列表?
我正在使用:
System.XML 4.0.0.0
NLog 4.0.0.0
.NET 4.6.1
【问题讨论】:
-
你用的是哪个版本的nlog?
-
4.0.0.0,我会把所有的版本都放在帖子里。
标签: c# .net compiler-errors nlog