Developer forum

Forum » Dynamicweb 10 » after upgrading to 10.22. to 10.24 "Failed to read NuGet.Config due to unauthorized access" in app section

after upgrading to 10.22. to 10.24 "Failed to read NuGet.Config due to unauthorized access" in app section

Shiwanka Chathuranga
Shiwanka Chathuranga
Reply

after upgrading to 10.22. to 10.24.10 production

An unhandled error occurred: Failed to read NuGet.Config due to unauthorized access. Path: 'C:\Windows\system32\config\systemprofile\AppData\Roaming\NuGet\NuGet.Config'.

Happen when click the app section

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Where is this hosted?

Seems like missing permissions on the app pool identity.

This is a permissions issue — the app is running under the SYSTEM account (or a low-privilege service account) that can't write to C:\Windows\system32\config\systemprofile\AppData\Roaming\NuGet\

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You might be able to Redirect NuGet config:


Set the NUGET_PACKAGES and NUGET_HTTP_CACHE_PATH env vars to a path the process can actually write to, e.g. in your environment or service config:
NUGET_PACKAGES=C:\ProgramData\NuGet\packages
NUGET_HTTP_CACHE_PATH=C:\ProgramData\NuGet\cache

 

You must be logged in to post in the forum