The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Syncfusion.DocIO.DLS.Shape[]' from assembly '

Hi everyone,

Has anyone ever faced this issue before?

Project type: Xamarin forms.
Syncfusion assemblies version: 18.3.0.53
Xamarin forms: 4.8.0.1687
 

12-08 22:19:12.279 I/mono-stdout(27346): System.TypeInitializationException: The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Syncfusion.DocIO.DLS.Shape[]' from assembly ''.
System.TypeInitializationException: The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Syncfusion.DocIO.DLS.Shape[]' from assembly ''.
12-08 22:19:12.282 I/mono-stdout(27346):   at System.Collections.Generic.List`1[T]..cctor () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:34 
12-08 22:19:12.284 I/mono-stdout(27346):    --- End of inner exception stack trace ---
  at System.Collections.Generic.List`1[T]..cctor () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:34 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)12-08 22:19:12.286 I/mono-stdout(27346):   at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
12-08 22:19:12.289 I/mono-stdout(27346):   at System.Collections.Generic.List`1[T]..ctor () [0x00006] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:42 
12-08 22:19:12.290 I/mono-stdout(27346):   at Syncfusion.DocIO.DLS.WordDocument..ctor () [0x00057] in <1fbc4ff5731c4002a3f052dffb7f5f6f>:0 

12-08 22:19:12.293 I/mono-stdout(27346):   at App1.Views.DocXToPdf.CreateDoc (System.String path) [0x00001] in C:\Users\repos\app\App1\App1\Views\DocXToPdf.xaml.cs:297   at System.Collections.Generic.List`1[T]..ctor () [0x00006] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:42 
  at Syncfusion.DocIO.DLS.WordDocument..ctor () [0x00057] in <1fbc4ff5731c4002a3f052dffb7f5f6f>:0 
  at App1.Views.DocXToPdf.CreateDoc (System.String path) [0x00001] in C:\Users\repos\app\App1\App1\Views\DocXToPdf.xaml.cs:297 


Attachment: docio_9609b75f.rar

3 Replies

HC Hemalatha Chiranjeevulu Syncfusion Team December 9, 2020 05:45 PM UTC

Hi Delon,

Thank you for contacting Syncfusion support.

We suspect that the reported issue might be based on the file level information in the input Word documents used at your end. To achieve your requirement of converting Word document(contains shape) to PDF in XamarinForms, we have prepared a sample application using DocIO. We suggest you to use the below Sample Application at your end to meet your requirement. Please find the sample from the below link
https://www.syncfusion.com/downloads/support/forum/160449/ze/WordToPDF-1439769817

If you still facing issue means, then kindly share us the modified sample of above and input Word document which used at your end to replicate the exact problem at our end.

Please let us know if you have any other questions.

Regards,
Hemalatha C
 



DE Delon December 11, 2020 08:17 PM UTC

I found the issue, had an assembly that had a different version from the others. After updating, it worked.

Thanks a lot.


HC Hemalatha Chiranjeevulu Syncfusion Team December 14, 2020 06:42 AM UTC

Hi Delon,

Thank you for your update.

We are glad to know that your problem has been solved.

Please let us know if you need any further assistance. We are happy to assist you always.

Regards,
Hemalatha C


Loader.
Up arrow icon