c# - Unable to load "lpsolve55.dll" in VS2015 on 64-bits OS -


for project working on, need solve mathematical model. chose using microsoft.solver.foundation , solverfoundation.plugin.lpsolve plugin. both associated .dll files these extension seem work fine, vs2015 recognizes , references them without problem , compiles , runs program without errors.

this untill try solve optimization, needs "lpsolve55.dll" work. have downloaded dll , put in project's bin/debug folder, kind of reason vs2015 doesn't recognize it. i.e.

  • i can't reference browsing "add reference" tab.
  • it's impossible (un-)register via regsvr32 cmd-prompt application, doesn't have dll (un-)registry entry points.
  • the tlbimp.exe cmd-prompt application can't handle it.

so basically, after discovering above (after trying most-common internet solutions), still feel quite dissatisfied error message while try solve optimization -

unable load dll 'lpsolve55.dll': specified module not found. (exception hresult: 0x8007007e)

the wierd part have project in solve similar problem, there absolutely no problems @ using lpsolve55.dll....

some quick facts:

  • i reference .net framwork 4.5.2. have changed 4.5 4.0, didn't change anyting.
  • for far can tell, bin/debug folder of projects identical.
  • i working on updated windows 10 os, 64 bits, while using visual studio 2015.

my question whether or not of have encountered similar problem , if able solve in way.

highly appreciated!

after careful analysis, have found answer problem. honest, things are, quite simple in end. lpsolve55.dll wasn't recognized because didn't have new bin-folder in path, did have old project. forgot.

on further note however, after lpsolve55.dll directory added path, still got error telling me there no model found solve directive. since error occured when calling lpsolverdirective(), research landed me on following page:

http://lpsolve.sourceforge.net/5.5/msf.htm

above page gives complete , stable way of how acces lpsolve55.dll using lpsolverplugin straight out of microsoft.solver.foundation.dll. after following method in link involves editing projects' bin/debug , bin/release folders, got lp model , running within no-time.

morale of story - read documentation. bit of beginner in programming entire multi-project solutions , using customly-added dlls, helps else experiencing same. in end, learned lot trying different methods of getting work, no time wasted.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -