This is a migrated thread and some comments may be shown as answers.

Error on import

4 Answers 469 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 01 Oct 2020, 12:40 AM

I am loading document from array.

In my local solution it work´s fine,  but when i deploy  the website to the server it doesnot work. the error is:

The type initializer for 'Telerik.Windows.Documents.Flow.Model.RadFlowDocument' threw an exception.

 

StackTrace: 
   at Telerik.Windows.Documents.Flow.Model.RadFlowDocument..ctor(Boolean setInitialDocumentDefaultValues)
   at Telerik.Windows.Documents.Flow.FormatProviders.Docx.Import.RadFlowDocumentImportContext.BeginImport()
   at Telerik.Windows.Documents.FormatProviders.OpenXml.OpenXmlImporter`1.Import(Stream input, IOpenXmlImportContext context)
   at Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider.ImportOverride(Stream input)
   at Telerik.Windows.Documents.Common.FormatProviders.BinaryFormatProviderBase`1.Import(Byte[] input)
   at FlujoTrabajo_VentanaFirma.GeneraOficioParaFirma(Byte[]& DocumentoPDF, Int32 idArchivo, Int32& NumOficio, String CodigoValidacion, Int32& IdFormulario, String Firmante, String PieFirma, DbTransaction transaction) in c:\Users\pmunoz\AppData\Local\Temp\WebSitePublish\Web_SIGEDOC--1718161755\obj\Debug\AspnetCompileMerge\Source\FlujoTrabajo\VentanaFirma.aspx.cs:line 1138

4 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 01 Oct 2020, 07:05 AM

Hello,

Looking at the error, it seems like an instance of RadFlowDocument cannot be created. This is usually caused by a missing dependency. Could you please verify that all the dependencies of WordsProcessing are properly deployed on the server and there is no anything stripped during the deployment process?

Please, let me know how it goes.

Regards,
Tanya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
n/a
Top achievements
Rank 1
answered on 01 Oct 2020, 05:23 PM

thank for you anwer!!

How can i verify if dependences were deploy on the server?
In my local solution (in visual sutdio) the references are ok, but i dont know how check it on the server.

 

0
n/a
Top achievements
Rank 1
answered on 01 Oct 2020, 07:51 PM

i am triing with anothe page, and i have a similar problema. its works fine in my local solucion, but when i deploy on the server doesnot work..

Help please

0
Tanya
Telerik team
answered on 06 Oct 2020, 06:46 AM

Hello,

Thank you for the additional information.

The error on the second page seems exactly the same as the first one. Comparing the list of required assemblies with the attached image, I noticed that the WindowsBase.dll, PresentationCore.dll, and PresentationFramework.dll dependencies are missing. They might be automatically resolved from the GAC on the local machine but might be missing on the server. Can you please try to add them? Does that resolve the issue you are observing?

Regards,
Tanya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
WordsProcessing
Asked by
n/a
Top achievements
Rank 1
Answers by
Tanya
Telerik team
n/a
Top achievements
Rank 1
Share this question
or