I'm using Rider to test out 9 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?
I'm using Rider to test out 9 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?
- I temporarily (no pun inteded) configured it to use /tmp folder for the keys, and app works fine. It's not a permanent solution, trying to still understand why default config won't work (builder.Services.AddDataProtection().PersistKeysToFileSystem(...)) – tonsteri Commented Jan 31 at 18:40
1 Answer
Reset to default 0If the issue still persists, please report it to our YouTrack, so we could take a closer look. Thnx!