CurlSharp icon indicating copy to clipboard operation
CurlSharp copied to clipboard

Problem loading libcurl.dll

Open MagnumIR opened this issue 3 years ago • 1 comments

Hello,

I thought I would make my happiness with CurlSharp, but I have struggled for 3 days. Unable to launch the project. An error appears when loading the LibCurl.dll dll on the _initCode = NativeMethods.curl_global_init ((int) flags) instruction; For information, I am using Windows 10 version 1809 64 bits and I am loading the solution with Visual Studio 2019 At first, I have an error: libcurl not found After copying libcurl.dll to the System32 directory I have a System.BadImageFormatException exception

I also copied the DLLs from CurlSharp \ libs \ i386 to CurlSharp \ Samples \ bin as shown in issues # 36 but it's not better.

Has anyone ever had this problem and found a solution?

MagnumIR avatar Sep 24 '20 07:09 MagnumIR

I just found out that in Windows 10 there is already Curl.exe installed in System32. Is this the problem?

MagnumIR avatar Sep 25 '20 08:09 MagnumIR