简体   繁体   中英

Unable to load DLL 'libcurl.dll': The specified module could not be found

I am using LibCurlNet on my asp.net project. I post some fields to server with it. I downloaded library and added it to my project as reference. At first I could run my project. But now when I run project, I have an exception:

{System.DllNotFoundException: Unable to load DLL 'libcurl.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at SeasideResearch.LibCurlNet.External.curl_global_init(Int32 flags) at SeasideResearch.LibCurlNet.Curl.GlobalInit(Int32 flags) in c:\\Users\\Administrator\\Documents\\Visual Studio 2008\\WebSites\\WebProjectUpload\\App_Code\\Curl.cs:line 47 at Post.Main(String[] args) in c:\\Users\\Administrator\\Documents\\Visual Studio 2008\\WebSites\\WebProjectUpload\\App_Code\\Post.cs:line 21}

and I have the exception at line "Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);"

When I try to add reference to my project, in bin folder I found three .dll file but I just add the "LibCurlNet.dll". Can anyone help me?

Can you try placing the dll in your bin folder and adding the reference from there? Alternatively you can place your assembly in the GAC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM