cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

NCo 3.1.5.0 System.IO.FileNotFoundException: Could not load file or assembly

spascual
Discoverer
1,137

Hello SAP gurus,

  1. I am trying to test the new nco connector for .NET 8 but I am finding a few issues.

The error I am seeing is System.IO.FileNotFoundException: 'Could not load file or assembly 'C:\Users\xxxxxxxxxxxxxxxxx\source\repos\MinimalNcoConsole\bin\x64\Debug\net8.0\sapnco_utils.dll'. The specified module could not be found.'

spascual_0-1740095977076.png

 

I went down a rabbit hole of validating step by step:

1. File actually exists

spascual_1-1740095993002.png

 

2. The right architecture and runtimes are targeted (.NET 8 - x64):

spascual_2-1740096023294.png

 

3. The C++ distributions are up to date

This is a Proof of concept console just to test if it would connect, Has anyone had a similar issue?

Are there specific dependencies that I need to take into account outside of the C++ packages?

spascual_3-1740096038116.png

spascual_4-1740096049557.png

Thank you in advance for any help you could provide!

S

 

Accepted Solutions (1)

Accepted Solutions (1)

spascual
Discoverer

I was missing ijwhost.dll pasted in the folder. If it is not present, it will say that is missing sapnco_utils.dll . This is solved now.

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert

Yes, basically ijwhost.dll is required in .NET (Core) to use unmanaged components.

Interestingly, according to Microsoft, "ijw" stands for "it just works"... 🤠

Answers (0)