• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue ASP.net Core UnauthorizedAccessException: Access to the path

AKACO

New Pleskian
Hi

,
I just upload my project on Plesk but I getting some error :
The login system is working fine on my development machine but when I publish it to my hosting environment it gives me this error:
UnauthorizedAccessException: Access to the path 'C:\Windows\system32\config\systemprofile\AppData\Local\ASP.NET\DataProtection-Keys' is denied.
I'm not sure where is the setting for IIS Application Pool
I talked to the hosting provider they said they gave me the full rights to the everywhere.
a9d5bfd2-1649-11e7-934b-ed32f3dffe6e.png

Thank you in advance.
 
Is this ASP.NET Core 1.0 application? or 1.1?

Key management and lifetime
According to documentation, there are several places where DataProtection Keys can be stored.

In ASP.NET 1.1 application you can configure your application to store these Data Protection Keys in location that is accessible by IIS application pool identity.
Configuring Data Protection

If you can't modify your application, or don't want to dive that deep into code, you can try to configure permissions to registry hive for your application pool identity.
In this case ASP.NET Core will store your Data Protection Keys in registry hive.
For that you need to know system user used as IIS application pool identity (IWPD_X(something), for example) and launch the following command line:

"%plesk_bin64%\aspnetcoremng.exe" --create-data-protection-hive --user-name=<IIS application pool identity>
 
Back
Top