masroore / CurlSharp

CurlSharp - .Net binding and object-oriented wrapper for libcurl.
BSD 3-Clause "New" or "Revised" License
182 stars 71 forks source link

Problem loading libcurl.dll #45

Open MagnumIR opened 4 years ago

MagnumIR commented 4 years ago

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 commented 4 years ago

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