环境:WIN10 VS2017 .NET CORE 2.2.3
在使用Workbook workbook = new Workbook();实例化的时候报下面的错误,更换次新版本也是如此,在Spire.Doc里找到了疑似报错的类sprឌ, sprឋ
错误信息:
Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HLUBKT8CR4DH", Request id "0HLUBKT8CR4DH:00000001": An unhandled exception was thrown by the application.
System.TypeInitializationException: The type initializer for 'spr?' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'spr?' from assembly 'Spire.Pdf, Version=6.3.0.0, Culture=neutral, PublicKeyToken=663f351905198cb3'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at spr?..cctor()
--- End of inner exception stack trace ---
at spr?..ctor()
at Spire.Xls.Workbook..ctor()