'XmlException and CryptographicException when running blazor web server app

I receive these two exceptions when I run my blazor web server app:

  1. XmlException: Root element is missing.
  2. CryptographicException: An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information.

I just created the project and run it... I didn't write any piece of code . Any help is appreciated because I didn't find any solution till now.

Screenshot of the error



Solution 1:[1]

I have found two solutions to fix this issue if someone faced it later.

links to solution:

  1. https://github.com/dotnet/aspnetcore/issues/12830#issuecomment-517907537
  2. https://github.com/dotnet/aspnetcore/issues/12830#issuecomment-606173185

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1