Code Analysis Application Errors


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Code Analysis Application Errors.

This section is a reference of the error messages that are generated by the managed code analysis tool. To get help for a specific error message, type the error number in the Look for box in the Index.

CA0001An exception was raised within managed code analysis tool that does not indicate an expected error condition.
CA0051No rules were selected.
CA0052No targets were selected to analyze.
CA0053Rule assembly could not be loaded.
CA0054A custom rule assembly has invalid XML resources.
CA0055Could not load file:<path>
CA0056A project file has an incorrect version of the analysis tool.
CA0057Violations cannot be mapped to the current set of targets and rules.
CA0058Unable to load assemblies referenced.
CA0059Command line switch error.
CA0060Unable to load assemblies referenced indirectly.
CA0061The rule 'RuleId' could not be found.
CA0062The rule 'RuleId' referenced in rule set 'RuleSetName' could not be found.
CA0063Failed to load rule set file or one of its dependent rule set files.
CA0064No analysis was performed because the specified rule set did not contain any FxCop rules.
CA0065Unsupported metadata construct: Type 'TypeName' contains both a property and a field with the same name 'PropertyFieldName'
CA0066The value 'VersionID' provided to the /targetframeworkversion is not a recognized version.
CA0067Directory not found.
CA0068Debug information could not be found for target assembly 'AssemblyName'.
CA0069Using Alternate Platform. FrameworkVersion1 could not be found. Using FrameworkVersion2 instead. For best analysis results please ensure that the correct .NET Framework is installed.
CA0070Cannot load assembly or type due to security permissions.
CA0501Unable to read output report.
CA0502Unsupported language.
CA0503 - 0ldThe property is deprectated. Use the superceding property
CA0504Rule directory was ignored because it does not exist
CA0505The property is deprectated. Use the superceding property
FxCopCmd ErrorsManaged code analysis errors.
Code Analysis Policy ErrorsCode analysis check in policy errors.

Guidelines for Writing Secure Code

Analyzing Managed Code Quality

Resources for Troubleshooting Errors in Application Lifecycle Management Tools