Behebung von PDFium-Abhängigkeitsfehlern
Google PDFium ist eine wesentliche Komponente des Kerncodes von IronPDF und wird für verschiedene Funktionen im Zusammenhang mit der Bearbeitung von PDF-Dateien und der Konvertierung von PDF-Dokumenten in Bilder verwendet. Fehlt die PDFium-Binärdatei im Projektordner, wird zur Laufzeit der folgende Fehler ausgelöst.
Unhandled exception. IronSoftware.Exceptions.IronSoftwareDeploymentException: Error while deploying Pdfium for IronPdf: 'Unable to locate 'IronPdfInterop'
Die Installation des Pakets "IronPdf.Native.PdfModel" in das Projekt behebt das Problem in der Regel.
Unter Windows ist es außerdem ratsam, sicherzustellen, dass auf dem Zielbetriebssystem die Visual C++ Runtimes installiert sind.
Was tun, wenn das Problem dadurch nicht behoben wird?
Sollte das Problem dadurch nicht behoben werden, stehen wir Ihnen gerne zur Verfügung. Kompatibilität hat für unser Entwicklerteam höchste Priorität. Bitte senden Sie einen Fehlerbericht per E-Mail an support@ironsoftware.com./support@ironsoftware.com Alle Kompatibilitätsprobleme werden von einem leitenden Ingenieur sorgfältig geprüft.
Bitte teilen Sie uns unbedingt mit, auf welchem Betriebssystem bzw. welcher Plattform die Lösung eingesetzt wird, insbesondere wenn es sich um eine Cloud-Plattform wie AWS oder Azure handelt.
So aktivieren Sie die native Protokollierung in IronPDF
Das Anhängen von Log-Dateien an einen Fehlerbericht verdoppelt die Wahrscheinlichkeit, dass wir das Problem isolieren und schnell beheben können.
Fügen Sie dies am Anfang Ihres Codes ein, bevor Sie IronPDF-Methoden ausführen (alle Versionen ab 2021.3.1).
// Enable debugging to generate detailed log files for troubleshooting.
IronPdf.Logging.Logger.EnableDebugging = true;
// Set the path for the log file. You can specify a directory name or a full file path.
IronPdf.Logging.Logger.LogFilePath = "Default.log";
// Set the logging mode to log all events.
IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All;
// Enable debugging to generate detailed log files for troubleshooting.
IronPdf.Logging.Logger.EnableDebugging = true;
// Set the path for the log file. You can specify a directory name or a full file path.
IronPdf.Logging.Logger.LogFilePath = "Default.log";
// Set the logging mode to log all events.
IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All;
' Enable debugging to generate detailed log files for troubleshooting.
IronPdf.Logging.Logger.EnableDebugging = True
' Set the path for the log file. You can specify a directory name or a full file path.
IronPdf.Logging.Logger.LogFilePath = "Default.log"
' Set the logging mode to log all events.
IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All
Die von IronPDF erstellten Protokolldateien befinden sich im Verzeichnis /bin Ihres Projekts, in dem Ihre DLLs bereitgestellt werden:
default.log(Bereitstellungsprozess)cef.log(Rendering)IronSoftwareCefSubprocess.log(Rendering & Threading)IronSoftwareEngine.log(Nützlich für das Debuggen von Ausnahmen, die mit "Fehler beim Erstellen der PDF-Datei aus ..." beginnen)
Cloud-Server verfügen oft über bestimmte Speicherorte für Log-Dateien. Wir bieten Anleitungen zum Erstellen von Protokolldateien in Azure und AWS.

