libcurl .NET does not want to work on Win64

Posted by Dmitry on Stack Overflow See other posts from Stack Overflow or by Dmitry
Published on 2010-04-02T20:38:51Z Indexed on 2010/04/02 20:43 UTC
Read the original article Hit count: 564

Filed under:
|
|

I wrote multi-threaded FTP uploader on C#.NET using libcurl.NET.

Everything works fine on my machine, but when I give application (exe + libcurl.dll + 2 libcurl C# binding DLLs) to my friend who is running Win64, application crashes.

After adding exception catcher to whole Main() function, I was able to get readable error message: "An attempt was made to load a program with an incorrect format (Exception from HRESULT = 0x8007000b)"

After googling for a while, I found an advice to enable unmanaged code in my project settings. I've recompiled my application and LibCurlNet.dll with this flag set but it did not help.

What can cause such problem?

© Stack Overflow or respective owner

Related posts about c#

Related posts about libcurl