cancel
Showing results for 
Search instead for 
Did you mean: 

Dokerize a .NET Application using SAP Hana connection

danielsonline
Discoverer
804

Hi dear team.

I have a problem and I don't know if is available to do it actually.

I'm trying to create a .NET application and connect it with SAP Hana Live db in my company.

I followed this tutorial Connect Using the SAP HANA .NET Interface | Tutorials for SAP Developers and the conection works correct.

The problem comes when I want to deploy the application using docker instead IIS.

I'm using the next dockerfile

When I deploy the app, the result image i'll see the Sap Hana dll needed for work, but when I run the methods in .NET api the next error appear.

If I put the library you mention inside the container, the following appears:

I don't know what todo for solve it.

Anyone knows how to do it?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

minghai_chang
Explorer

Hello,

Are you deploying the Windows version of the HANA .NET Core provider to a Linux docker? On Linux machine, you have to use the Linux version of the HANA .NET Core provider (Sap.Data.Hana.Core.v2.1.dll and libadonetHDB.so).

Kind regards,

Minghai

beka
Participant
0 Kudos

I did same thing with windows containers it works but I can't make it work on linux container.

I sure did copied linux version of hdbclient but problem is that when running on debug it works but after publishing docker image it does not.

When creating hana connection it just hangs there no exception or error messages not event timeout.

I am out of ideas.

Regards

minghai_chang
Explorer
0 Kudos

Can you get the SQLDBC trace?

Kind regards,

Minghai