Visual Studio 2013 Code Exception CA0055: Failed to load assembly

I am trying to start code analysis in Web Project in VS2013, but I am getting CA0055 exception.

I looked at the log file. Here is the exception information that is logged.

<Exception Keyword="CA0055" Kind="AssemblyLoad">
<Type>Microsoft.FxCop.Common.AssemblyLoadException</Type>
<ExceptionMessage>Could not load MyProject.dll.</ExceptionMessage>
<InnerType>System.NullReferenceException</InnerType>
<InnerExceptionMessage>Object reference not set to an instance of an object.</InnerExceptionMessage>
         <InnerStackTrace>   at Phx.Metadata.ReaderImplementation.CreateTokenMap()
       at Phx.Metadata.MetadataLoader.GetModule(String fileName, FileInfo fileInfo, AssemblyUnit unit)
       at Phx.Metadata.MetadataLoader.GetAssembly(String fileName, AssemblyUnit unit)
       at Phx.Metadata.MetadataLoader.LoadAssemblyDefinition(AssemblyUnit unit)
       at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.ProcessWorklist(MetadataLoader metadataLoader, Boolean ignoreErrors)
       at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAttributeType(AggregateType type, MetadataLoader metadataLoader)
       at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAttributes(List`1 attributes, MetadataLoader metadataLoader)
       at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAttributes(ProgramUnit   programUnit, MetadataLoader metadataLoader)
             at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAssembly(String filePath)
       at Microsoft.FxCop.Engines.Phoenix.PhoenixAnalysisEngine.AnalyzeInternal()  
</InnerStackTrace>
</Exception>

Has anyone encountered the same type of problem? Any key would be helpful.

+1
source share

All Articles