tonsteri
tonsteri

Reputation: 845

asp.net cannot delete it's own DataProtection keys

I'm using Rider to test out .net9 in OSX. I created a project with ASP.NET blazor template, and out of the box it refuses to start with an error

 Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider[48]
      An error occurred while reading the key ring.
      System.UnauthorizedAccessException: Access to the path '/Users/me/.aspnet/DataProtection-Keys/1961c782-5584-4ea5-b2ca-aab7be755266.tmp' is denied.
       ---> System.IO.IOException: Operation not permitted
         --- End of inner exception stack trace ---
         at System.IO.FileSystem.DeleteFile(String fullPath)

When I play in console, my user can read/write/delete these files just ok. Is Rider using some other service account to debug/run projects, I could not find a setting for this. I tried setting o+rw rights to that folder and individual files, but no use. What do?

Upvotes: -1

Views: 38

Answers (1)

Securitron Yesman
Securitron Yesman

Reputation: 111

If the issue still persists, please report it to our YouTrack, so we could take a closer look. Thnx!

Upvotes: 0

Related Questions