Skip to content

Fehler beim Erstellen einer PDF mit InvoicePdfProcessor.SaveToPdfAsync #518

@conceptcase

Description

@conceptcase

Folgende Fehler erhalte ich beim Erstellen einer ZUGFeRD PDF Datei:

=== Zustandsinformationen vor Bindung ===
LOG: DisplayName = PdfSharp, Version=1.1.1.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb
(Fully-specified)
LOG: Appbase = file:///C:/2_Projekte/2_3_Projekte/VisualStudioOnline/FDDIS2024/RuntimeObjekte/Debug/
LOG: Ursprünglicher PrivatePath = NULL
Aufruf von Assembly : s2industries.ZUGFeRD.PDF, Version=16.1.1.0, Culture=neutral, PublicKeyToken=18b03107da61b096.

LOG: Diese Bindung startet im default-Load-Kontext.
LOG: Die Anwendungskonfigurationsdatei wird verwendet: C:\2_Projekte\2_3_Projekte\VisualStudioOnline\FDDIS2024\RuntimeObjekte\Debug\FDDIS_Start.exe.Config
LOG: Die Hostkonfigurationsdatei wird verwendet:
LOG: Die Computerkonfigurationsdatei von C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config wird verwendet.
LOG: Verweis nach der Richtlinie: PdfSharp, Version=1.1.1.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb
LOG: Download von neuem URL file:///C:/2_Projekte/2_3_Projekte/VisualStudioOnline/FDDIS2024/RuntimeObjekte/Debug/PdfSharp.DLL.
WRN: Der Vergleich des Assemblynamens führte zum Konflikt: Nebenversion.
ERR: Das Setup der Assembly konnte nicht abgeschlossen werden (hr = 0x80131040). Die Suche wurde beendet.

Die Datei oder Assembly "PdfSharp, Version=1.1.1.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)

Stacktrace:
at s2industries.ZUGFeRD.PDF.InvoiceDescriptorPdfSaver._CreateFacturXStream(Stream pdfStream, Stream xmlStream, ZUGFeRDVersion version, Profile profile, String documentTitle, String documentDescription, String invoiceFilename)
at s2industries.ZUGFeRD.PDF.InvoiceDescriptorPdfSaver.d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at s2industries.ZUGFeRD.PDF.InvoiceDescriptorPdfSaver.d__1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at s2industries.ZUGFeRD.PDF.InvoicePdfProcessor.d__3.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at FDDIS.CtlReporting.d__33.MoveNext() in C:\2_Projekte\2_3_Projekte\VisualStudioOnline\FDDIS2024\CtlAndOtherClasses\CtlReporting.cs:line 2426

Was ist zu tun (bin leider nicht ganz so tief in der Materie) ;-) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions