Nuget add packages gives access denied errors


When I add Nuget packages via the Visual Studio 2015 GUI some packages don't install with the following error

Access to the path 'Microsoft.DotNet.InternalAbstractions.dll' is denied.

I tried running Visual Studio 2015 as Administrator and uninstalling the packages and adding them again but I still get the same error


I closed Visual Studio and killed the 2 running processes called dotnet as well as deleted the C:\Users\myser.nuget\packages folder to ensure all packages are redownloaded again in case something was corrupt.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


Java file IO and "access denied" errors

signed applet gives AccessControlException: access denied, when calling from javascript

Importing multiple packages using brackets gives errors in go?

Hosting ASP.NET in IIS7 gives Access is denied?

Access Nuget Packages hosted in private Nuget server in Azure Functions

How to add nuget packages to shared project

New-SelfSignedCertificate to create certificate gives Access Denied

Debug in Visual Studio 2017 gives access denied

Random access denied errors on User Extensions

Option "Add NuGet packages" not available/greyed out

How to add NuGet packages to the Dockerfile build steps?

Xamarin - Updating nuget packages caused errors

Visual Studio: how to add nuget packages as references when doing "Restore NuGet packages"

How to add TypeScript Definitions to .NET Core Nuget Packages

accessing path through cloudfront gives access denied

Why should I add NuGet packages dlls to source control?

Cordova - cordova platform add android access denied

Anglular gives access denied to mymodal.html

Why the prompt gives me "Access denied"?

Errors resolving NuGet Packages after TFS Download

Visual Studio - Add reference and access denied

unable to add nuget packages in blank ASP.NET core project

Add document access denied

Can PostSharp add its Nuget packages from an Artifactory source that is secured?

PowerShell Add-Computer giving Access Denied

Working command in a plain Powershell prompt gives Access denied in a PSSession

vscode installed in other directory gives access denied error

Installing NuGet Package: "Access to the path 'c:\Documents and Settings' is denied."

Visual Studio Nuget Update - Access denied to \packages\System.Security.Cryptography.X509Certificates.4.3.2\.signature.p7s is denied

TOP Ranking