title: How can I setup the NuGet configuration to work under the IIS App Pool user account so I can download files from a custom NuGet source in ASP.NET MVC?
body: <p>I am trying to download NuGet packages from a custom nuget server using an ASP.NET MVC website. The code I have runs fine under a console app, but when I run it under IIS I receive an exception:</p>
  
  <p>System.InvalidOperationException: Package stream for 'MyPackage.1.0.0' cannot be found at '<a href="https://mynugetserverurl" rel="nofollow">https://mynugetserverurl</a>'.</p>
  
  <p>Each run under different credentials. My local user in the case of the console app and the standard IIS User (APP POOL\my.domain.name.com) in the other.</p>
  
  <p>My custom nuget package source is setup for my local user and I have tried setting up the nuget.config for the IIS user in many different locations per this nuget documentation (<a href="https://docs.nuget.org/consume/nuget-config-file" rel="nofollow">https://docs.nuget.org/consume/nuget-config-file</a>), but none appear to be recognized.</p>
  
  <p>How can I setup the NuGet configuration to work under the IIS App Pool user account so I can download files from a custom NuGet source in ASP.NET MVC?</p>