title: Not able to copy file in .Net application
body: <p>I am trying to add authentication for .Net core web app, but when I try to run the code it is unable to copy some files even though I have full access to the system.</p>
  <p>I following this doc for web app authentication <a href="https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad" rel="nofollow noreferrer">link</a></p>
  <p>Error that I am receiving is</p>
  <pre><code>Error   MSB3027 Could not copy &quot;C:\Users\userName\.nuget\packages\system.security.cryptography.protecteddata\4.5.0\
  runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll&quot; to 
  &quot;bin\Debug\netcoreapp3.1\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll&quot;. 
  Exceeded retry count of 10. Failed.
  WebApp-OpenIDConnect-DotNet C:\Program Files (x86)\Microsoft Visual Studio
  \2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 4364    
  
  </code></pre>