Could not load file or assembly ‘System.Security.Principal.Windows’

None of the previous answers worked for me.

The problem was that I didn’t have the .NET Compiler Platform SDK installed.

To solve, open Visual Studio Installer, choose “Modify”, and under the “Invididual Component” tab, check the .NET Compiler Platform SDK, and confirm your changes by clicking “Modify”.

enter image description here

After I installed it and reopened Visual Studio, the problem is gone.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)