无法加载文件或程序集

cetgtptt  于 2021-08-09  发布在  Java
关注(0)|答案(1)|浏览(445)

我正在使用awslamda函数连接我的数据库并执行sql脚本文件,但每当我运行我的项目时,我都会遇到相同的错误
我在lamda模拟测试工具中得到了这个错误
有人能帮我吗……?请告诉我

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.ConnectionInfo, Version=16.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. The system cannot find the file specified.
   at AwsLamdaDb.Function.FunctionHandler(String input, ILambdaContext context)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at AwsLamdaDb.Function.FunctionHandler(String input, ILambdaContext context)
---------------- Inner 1 Exception ------------
System.IO.FileNotFoundException: Could not load the specified file.
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
lmyy7pcs

lmyy7pcs1#

我不是.net资源,但我认为这是由于sql server sdk程序集安装不当造成的。是否可以检查是否安装了sql server sdk?
参考:https://social.msdn.microsoft.com/forums/ie/en-us/896e04a7-d5b0-41bf-a846-eb69dc5cc06a/microsoftsqlserverconnectioninfo-load-error?forum=adodotnetdataproviders

相关问题