I was trying to deploy an Identity Server 4 app with asp.net core 2.2 into IIS in my local machine (Windows 10) and get the error "An error occurred while starting the application. get the error "An error occurred while starting the application. UnauthorizedAccessException: Access to the path 'c:\windows\system32\inetsrv\tempkey.rsa' is denied."
Its working with debugging mode but getting above while deploying in IIS.
Identity server 4 version - 2.3.2
Asp.net core 2.2
IIS 10.0.16
Can anyone help to solve this?