IronPDF - Use different nuget source for downloading platform specific dependencies

1k Views Asked by At

Our dev environment is behind Firewall and default NuGet url is blocked and we use a custom NuGet repo url for downloading package.

IronPdf tries to download IronPdf.Native.Chrome.Windows version 2022.2.4868 in runtime from https://www.nuget.org/api/v2/package/IronPdf.Native.Chrome.Windows/2022.2.4868 which is blocked and returns error message saying Failed downloading NuGet package at runtime

I have tried manually adding that package to the project but it is still not included in the build output and IronPdf again tries to retrieve from NuGet

How to

  1. Include the Native package in deployed output

OR

  1. Configure NuGet source in IronPdf
1

There are 1 best solutions below

2
On

As the comment under your post suggests, this is most likely a permission issue with your temp or bin directory where IronPdf is attempting to deploy the dependencies it extracts from that package.

In our case, IronPdf was attempting to deploy the Chrome dependencies to, \runtimes\win-64x\native, in our deployment directory. We use service accounts for our IIS App Pool Identities, so we gave full permissions over the entire deployment (web) directory where the IIS Web Site is pointing to and the issue was resolved.