Libcurl.NET does not want to work with Win64

I wrote a multi-threaded FTP downloader in C # .NET using libcurl.NET.

Everything works fine on my machine, but when I provide the application (exe + libcurl.dll + 2 libcurl C # associated with a DLL) to my friend who runs Win64, the application crashes.

After adding the catch catch to whole Main () function, I was able to get the error message I read: "An attempt was made to load a program with the wrong format (exception from HRESULT = 0x8007000b)"

After searching Google for a while, I found advice to enable unmanaged code in my project settings. I recompiled my application and LibCurlNet.dll with the flag set, but this did not help.

What can cause such a problem?

+3
source share
1 answer

The libcurl.NET library is a 32-bit library, so it cannot be used by a 64-bit application. You need to recompile the application to install on the x86 platform. This will make it work as a 32-bit application under WOW64 on 64-bit operating systems.

+3
source

Source: https://habr.com/ru/post/1739639/


All Articles