Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load shared library '/home/site/wwwroot/libadonetHDB.dll' or one of its dependencies.

Manisha5
Discoverer
0 Kudos
352

Reproduction steps

1)Created new Web API project in Visual studio 2022 and using Target Framework .NET 8.0, Platform target is Any CPU

2)Added package through NuGet is SAPHanaForNetCore 3.1.0 package

3)deploying the project on Azure app service and OS is Linux and getting below error 2024-04-01T14:35:07.4105784Z ---> System.DllNotFoundException: Unable to load shared library '/home/site/wwwroot/libadonetHDB.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /home/site/wwwroot/libadonetHDB.dll: invalid ELF header at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)

Description

Unable to load shared library '/home/site/wwwroot/libadonetHDB.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: I am using Visual Studio 2022 and Architecture is "Any CPU" I have downloaded the SAPHanaForNetCore 3.1.0 package through nuget

0 REPLIES 0