title: Nuget Package Restore Failing with Access to the path '..\packages\Microsoft.Owin.Security.Jwt\4.0.0' is denied
body: <p>As title says I am getting that error while I am restoring my packages in Visual Studio 2015 Update 3, Windows 10 System.</p>
  
  <p>Background:
  My company is maintaining a central nuget repository from where all the packages are being installed.
  The mentioned packages is a dependency to a package developed by my organization.</p>
  
  <p>So I am using a solution .nuget package to specify our central repository to download all the packages even if it is coming from nuget.org. Everything is being served through that central repository. No direct nuget.org package url configuration in project.</p>
  
  <p>Some Troubleshooting Information:
  I tried restoring packages directly from nuget it works without any issue.(No change in rights or project settings or system configuration)</p>
  
  <p>Error Received during Restore:</p>
  
  <p><strong>NuGet Package restore failed for project projectName\project: Unable to find version '4.0.0' of package 'Microsoft.Owin.Security.Jwt'.<br>
  <a href="https://company-central-repository/nuget" rel="nofollow noreferrer">https://company-central-repository/nuget</a>: Error downloading 'Microsoft.Owin.Security.Jwt.4.0.0' from '<a href="https://company-central-repository/nuget/Download/Microsoft.Owin.Security.Jwt/4.0.0" rel="nofollow noreferrer">https://company-central-repository/nuget/Download/Microsoft.Owin.Security.Jwt/4.0.0</a>'.
  Access to the path '..\packages\Microsoft.Owin.Security.Jwt\4.0.0' is denied.
  <a href="https://company-central-repository/nuget-prerelease" rel="nofollow noreferrer">https://company-central-repository/nuget-prerelease</a>: Error downloading 'Microsoft.Owin.Security.Jwt.4.0.0' from '<a href="https://company-central-repository/nuget-prerelease/Download/Microsoft.Owin.Security.Jwt/4.0.0" rel="nofollow noreferrer">https://company-central-repository/nuget-prerelease/Download/Microsoft.Owin.Security.Jwt/4.0.0</a>'.
    Access to the path '..\packages\Microsoft.Owin.Security.Jwt\4.0.0' is denied.</strong></p>
  
  <p>I am not sure what is wrong with that.</p>
  
  <p>My suspicion is that I am not able to download that package because I dont have access to that repository. Thats where access denied is coming from and not my local folder.</p>
  
  <p>But I am able to search those packages through web portal of the repository and its visible and I am able to read the details. Also I am able to download the .package file.</p>
  
  <p>Also I checked the rights of the folders 'C:\Users\username.nuget\packages' and project package folder. Full access is there. And no issue in restoring packages from nuget.org directly for other packages which are added.</p>
  
  <p>From where can i see more logs related to this?
  If anyone else has faced same issue with it then please share your solution.</p>