[Public] Assembly Mismatch in Version Upgrade for .NET Framework Projects
During Development (Visual Studio side):
This issue is commonly occurred in .NET Framework projects when dependencies are not fully updated. To address this, steps below are recommended
- Uninstall the IronPDF package along with any other Iron-related packages from your project using the NuGet Package Manager in Visual Studio.
- Clean the runtimes folder, bin/debug folder within your output directory.
- Reinstall the IronPDF package via the NuGet Package Manager.
If the above steps do not resolve the issue, please consider clearing the NuGet cache and restoring the project.
You may refer to the following troubleshooting guide for additional context: IronPDF Troubleshooting Guide – Steps 6 and 7
Alternatively, you can also use the command line to clear the NuGet cache and force a dependency restore:
dotnet nuget locals all --clear
dotnet restore --force
During Deployment (Server side):
Please ensure that any old DLLs have been completely removed from the server directory before republishing the application.
(For safety, we recommend creating a zipped backup of the old DLL folders, placing the new build output in a fresh directory, and updating the IIS website to point to this new location.)