linkedinfacebooktwittermenuarrow-up

GemBox Support Forum

SaveOptions.PdfDefault throwing error in Dynamics 365 Plugin

Hi all,

We’re trying to use Gembox.Document in a Dynamics 365 plugin. We are able to load a word document in a stream, make changes to the document and save the document stream as a word document (SaveOptions.DocxDefault), but if we attempt to use SaveOptions.PdfDefault, the following error is thrown:

[+185ms] - [ExecuteDataversePlugin] - Exception:The type initializer for ' ​ ’ threw an exception.
[+0ms] - [ExecuteDataversePlugin] - Inner Exception:The type initializer for ‘’ threw an exception.
[+9ms] - [ExecuteDataversePlugin] - Stacktrace: at .(Attribute )
at ..MoveNext()
at .()
at . (String )
at . (String )
at .(Uri )
at .(Assembly , String )
at .()
at .(Uri , )
at .( , Object )
at .[TArg]( , Func`3 , TArg )
at .( )
at .( )
at . ()
at .( )
at .( , Int32 , , Boolean , ​ & )
at .( , Int32 , ​ & )
at ​ .( , Int32 )
at .(CharacterFormat , , , ​ , Int32 )
at .( )
at .()
at .()
at GemBox.Document.DocumentModel.(PaginatorOptions , , Boolean )
at GemBox.Document.PdfSaveOptions.67tg5rkvl9zwp8v7723mndgzuc3b4vj8 (DocumentModel , Stream , String )
at GemBox.Document.DocumentModel.Save(Stream stream, SaveOptions options)

Any feedback would be appreciated.

Thanks,
Eric

Hi Eric,

Please submit a support ticket so that we can gather more information about this problem.

Regards,
Mario