Interop.AppleCrypto.AppleCFErrorCryptographicException: The operation couldn't be completed.
There could be a couple fixes to this problem, the most likely is you need to restart your device.
If that doesn't work, you could try force unlocking your login keychain with:
security -v unlock-keychain /Users/$USER/Library/Keychains/login.keychain
If that doesn't work either, Mac can sometimes set trust settings for your certificates as admin instead of as user. If you don't see your certificates by running:
Then try running:
security dump-trust-settings -d
If your certificates show up here you will have to export the trust settings to user using the security command, as there is no way to specify this in the Keychain Access Application.
To do this, run
security trust-settings-export -d <filename> to export the admin certificates.
Then import them into user with
security trust-settings-import <filename>.
See the related Github Issue for more information.
Error NU1403: Package content hash validation failed
Following commands should fix the problem:
dotnet nuget locals all --clear
git clean -xfd
git rm \*\*/packages.lock.json -f
For more details read https://github.com/NuGet/Home/issues/7921#issuecomment-478152479
An attempt was made to access a socket in a way forbidden by its access permissions
This error typically occurs when the application attempts to use a port that is either already in use or reserved. Newer Windows with Hyper-V reserves many ports 50 000+.
Luckily it’s possible to manually mark the ports as reversed to prevent Hyper-V from reserving them. Start a CMD session in an elevated mode and run the following commands, and restart the computer.
net stop winnat
netsh int ipv4 add excludedportrange protocol=tcp startport=<port> numberofports=1 store=persistent
net start winnat