Warning AD0001: Analyzer 'CSharp.DatabasePasswordsShouldBeSecure' threw an exception

I’m getting this warning message on scan. I’ve tried 5.4 and latest 5.13, with the same result.

##[warning]CSC(0,0): Warning AD0001: Analyzer ‘SonarAnalyzer.Rules.CSharp.DatabasePasswordsShouldBeSecure’ threw an exception of type ‘System.Collections.Generic.KeyNotFoundException’ with message ‘The given key ‘ConnectionStrings’ was not present in the dictionary.’.

What version of SonarQube are you using (it should be in the footer of your SonarQube instance)

Version 9.2.4 (build 50792)


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

9.2.4 → 9.9 → 10.0 (last step optional)

You may find the Upgrade Guide and the LTS to LTS release upgrade notes for 8.9 to 9.9 helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.