I'm trying to Run Code Analysis manually on one project and I'm getting following error: CA0055: Could not load xxx.dll.
This is detailed log from xml log:
<Exception Keyword="CA0055" Kind="AssemblyLoad">
<Type>Microsoft.FxCop.Common.AssemblyLoadException</Type>
<ExceptionMessage>Could not load D:\...\bin\debug\xxx.dll.</ExceptionMessage>
<InnerType>System.IO.InvalidDataException</InnerType>
<InnerExceptionMessage>Invalid type for custom attribute argument</InnerExceptionMessage>
<InnerStackTrace> at
Phx.Metadata.LoaderImplementation.DeserializePointerTypeConstant(Type type,
AttributeBlobReader& blobReader, Boolean doResolveEnums)
at Phx.Metadata.LoaderImplementation.DeserializeConstant(Type type,
AttributeBlobReader& blobReader, Boolean doResolveEnums)
at Phx.Metadata.MetadataLoader.ParseCustomAttribute(AttributeSymbol attributeSymbol,
Boolean doResolveEnums)
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>
The xxx.dll exists in the path and the access is allowed.
Can somebody help what can be wrong?
thanks