IRONSOFTWAREHOME

Deploying IronPDF NuGet Packages: Fixes

Curtis Chau
Curtis Chau
Updated: August 2, 2026

You might see one or more of the following error messages when trying to deploy a NuGet package:

Failed to deploy NuGet package '_IronPdf.Native.Chrome.Windows(version)'
Text
System.Net.WebException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Text
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.
Text
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Text
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Text

Possible Cause

The most common cause of these errors is related to outdated TLS protocols. As of April 2020, NuGet has removed support for TLS 1.0 and 1.1, and now enforces TLS 1.2. If TLS 1.2 is not enabled on your system, NuGet commands may fail.

Switching from HTTP to HTTPS won't resolve the issue if TLS 1.2 is not enabled, as NuGet now requires secure connections.

Solutions

  1. Install Visual C++ Runtimes: Ensure that the Visual C++ Redistributable for Visual Studio is installed on your system. Missing runtimes can cause issues with certain packages, including IronPDF.

  2. Update Visual Studio: Make sure you are using a recent, up-to-date version of Visual Studio. Visual Studio 2015 or higher is required to properly support modern TLS protocols.

    • In Visual Studio, go to:
      • Tools > Extensions and Updates > Updates > Visual Studio Gallery
      • Update the NuGet Package Manager to the latest version.
  3. Enable Strong Cryptography in .NET: If the above steps do not resolve the issue, you may need to enable strong cryptography in .NET. This can be done by modifying the registry.

    1. Create a .reg file with the following content:

      [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
      "SchUseStrongCrypto"=dword:00000001
      
      [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
      "SchUseStrongCrypto"=dword:00000001
      Text
      • The above registry entries enable the use of strong cryptography in .NET on both 32-bit and 64-bit versions.
    2. Run the .reg file to update the registry settings. This enables strong cryptography in .NET, allowing TLS 1.2 connections.

No reboot is required. After applying these changes, try running your NuGet command again.

For more details, refer to this Stack Overflow post: NuGet fails: The underlying connection was closed: An unexpected error occurred.

Reach out to us by submitting an Engineering Request should you need further assistance.

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 21,105,021Version:2026.9just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"

Licenses from $999

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

OR
bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried Iron Suite
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"

Licenses from $999