Tue Oct 20, 2020 12:25 am
I am facing the similar issue and getting below error:
I am using Spire.xls 10.10.6, installed from nugget package and .NET Core version 2.1. Can you please help?
System.IO.FileLoadException: Could not load file or assembly 'Spire.XLS, Version=10.10.6.0, Culture=neutral, PublicKeyToken=663f351905198cb3'. An operation is not legal in the current state. (Exception from HRESULT: 0x80131509)
at LambdaTest1.Function.readObjectfromS3Async(List`1 records)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at LambdaTest1.Function.readObjectfromS3Async(List`1 records)
at LambdaTest1.Function.FunctionHandler(String input, ILambdaContext context) in <file path>
---------------- Inner 1 Exception ------------
System.InvalidOperationException: Resolved assembly's simple name should be the same as of the requested assembly.
at System.Runtime.Loader.AssemblyLoadContext.ValidateAssemblyNameWithSimpleName(Assembly assembly, String requestedSimpleName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)