Hi 4.3 error httpdocs\App_Data\DataProtectionKeys\79ab4097-1b2c-416a-9404-a0b51686d476.tmp' is denied.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 2 años
Hi  nopcommerce version 4.3,  ASP.NET Web Hosting 4.7
I try to restart IIS Application Pool for Website  it's not work.

anyone can help me?

Thank you very much.



UnauthorizedAccessException: Access to the path 'D:\Inetpub\vhosts\fitness-china.com\httpdocs\App_Data\DataProtectionKeys\79ab4097-1b2c-416a-9404-a0b51686d476.tmp' is denied.
System.IO.FileSystem.DeleteFile(string fullPath)

CryptographicException: An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information.
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(byte[] plaintext)



UnauthorizedAccessException: Access to the path 'D:\Inetpub\vhosts\fitness-china.com\httpdocs\App_Data\DataProtectionKeys\79ab4097-1b2c-416a-9404-a0b51686d476.tmp' is denied.
System.IO.FileSystem.DeleteFile(string fullPath)
Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository.StoreElementCore(XElement element, string filename)
Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository.StoreElement(XElement element, string friendlyName)
Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager.Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.CreateNewKey(Guid keyId, DateTimeOffset creationDate, DateTimeOffset activationDate, DateTimeOffset expirationDate)
Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager.CreateNewKey(DateTimeOffset activationDate, DateTimeOffset expirationDate)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.CreateCacheableKeyRingCore(DateTimeOffset now, IKey keyJustAdded)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.ICacheableKeyRingProvider.GetCacheableKeyRing(DateTimeOffset now)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRingCore(DateTime utcNow, bool forceRefresh)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(byte[] plaintext)


CryptographicException: An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information.
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(byte[] plaintext)
Microsoft.AspNetCore.Session.CookieProtection.Protect(IDataProtector protector, string data)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Nop.Services.Installation.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in InstallUrlMiddleware.cs
Nop.Services.Common.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in KeepAliveMiddleware.cs
Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Variable  Value
Accept  text/html
Accept-Encoding  gzip
Accept-Language  en
cdn-loop  cloudflare
cf-connecting-ip  18.219.161.138
cf-ipcountry  US
cf-ray  6a1208aede0e57f4-EWR
cf-visitor  {"scheme":"https"}
Connection  Keep-Alive
Host  www.fitness-china.com
User-Agent  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
x-forwarded-for  18.219.161.138
x-forwarded-proto  https
Hace 2 años
Hi
as per the error log we can check assume that , you need to provide full permission of the folder
also you can prefer the given link

https://stackoverflow.com/questions/10255790/access-to-the-path-c-inetpub-wwwroot-myapp-app-data-is-denied

https://forums.asp.net/t/1846672.aspx?hosting+website+Access+to+the+path+D+inetpub+vhosts+siwebsoft+com+httpdocs+App_Data+work+user1+09+26+2012+is+denied+

let me know if still facing issue
Thanks
Hace 2 años
Maybe this will help
https://www.nopcommerce.com/en/boards/topic/91039/missing-permissions-v440
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.