No function was found with the name SetLogEvent with error code (127)

System.InvalidOperationException No function was found with the name SetLogEvent with error code (127)

This issue can occur if using the IronPdf.Slim NuGet package - IronPdf.Native.Chrome.Windows can be used to manually update the native package to the latest version.

The recommended solution is to clean the bin directory (deleting previous files) and rebuild the solution.