I have references to both assemblies Spire.Doc.dll and Spire.Xls.dll.
I get an error when I try to execute:
Spire.Xls.Workbook myWorkBook = new Spire.Xls.Workbook();
Error: The type initializer for 'spr755' threw an exception.
Details
{"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."}
Stack Trace:
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at spr755..cctor()
If I remove the reference to Spire.Doc the code works fine.
Thanks,
Cristian