近期做一个WEB项目,遇到一个很棘手的问题,也很郁闷.描述如下:
在公司编译项目提示错误:
无法加载 DotNetNuke.dll。
无法加载 Microsoft.ApplicationBlocks.Data.dll。
错误 80 FxCopCmd.exe 返回错误代码 8。
将项目拿回家中在我个人的笔记本电脑上编译没有任何问题.(苍天,程序也会调机子!)
确定应该是环境问题.打开编译报告描述如下:
 <Exceptions>
  <Exception Keyword="CA0055" Kind="AssemblyLoad">
   <Type>Microsoft.FxCop.Common.AssemblyLoadException</Type>
   <ExceptionMessage>无法加载 DotNetNuke.dll。</ExceptionMessage>
   <InnerType>Microsoft.FxCop.Sdk.FxCopException</InnerType>
   <InnerExceptionMessage>为此项目成功加载的第一个程序集已链接到 v2.0.50727。“DotNetNuke”已链接到 v1.1.4322,因此不能从同一个项目中进行分析。</InnerExceptionMessage>
   <InnerStackTrace>   在 Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.CanLoadTargetFile(TargetFile target)
   在 Microsoft.FxCop.Common.EngineManager.LoadTargets(TargetFile target, Boolean resetCounts, String loadEngine)</InnerStackTrace>
  </Exception>
  <Exception Keyword="CA0055" Kind="AssemblyLoad">
   <Type>Microsoft.FxCop.Common.AssemblyLoadException</Type>
   <ExceptionMessage>无法加载 Microsoft.ApplicationBlocks.Data.dll。</ExceptionMessage>
   <InnerType>Microsoft.FxCop.Sdk.FxCopException</InnerType>
   <InnerExceptionMessage>为此项目成功加载的第一个程序集已链接到 v2.0.50727。“Microsoft.ApplicationBlocks.Data”已链接到 v1.1.4322,因此不能从同一个项目中进行分析。</InnerExceptionMessage>
   <InnerStackTrace>   在 Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.CanLoadTargetFile(TargetFile target)
   在 Microsoft.FxCop.Common.EngineManager.LoadTargets(TargetFile target, Boolean resetCounts, String loadEngine)</InnerStackTrace>
  </Exception>
 </Exceptions>
重装.NET.重新启动IIS,重新配置IIS虚拟目录.问题依旧就差重装系统了.查找CA0055错误不是要找的证结呀.家中,公司全是NTFS磁盘,项目全盘拷贝,请问高手是系统那里设置的问题还是另有问题.不甚感激.