c# - system.dllnotfoundexception without VS 2008 -


my c# code loads c++ dll. works fine on pc, visual studio 2008 installed. on other machines program stop exception

unhandeled exception: system.dllnotfoundexception unable load dll ...  application has failed becasue application configuration incorrect....  

how can make code run on machine doesn't have vs 2008 installed?

you must distribute dll along project if custom dll of yours. if not, must install required dll either custom installer or if different provider, installer of them.

this post might bit older, but

dll files , .net clickonce deployment

i want deploy 1 of .net apps clickonce application. issue connecting oracle (see previous posts here , here). connecting oracle requires @ least, 4 dll files have in same directory exe file. issue when program published, dlls not referenced in way, program won’t work.

then read adding files project, clickonce , publish processor figure out dlls required , add them manifest.

here process in visual studio 2005:   1. put 4 dll files in own directory in solution directory (for ease of use mostly).   2. add 4 files project going “project->add existing item…”   3. click on each dll file in solution explorer , change property: “copy output directory” “copy always”. 

that’s it! when publish or run application don’t have worry if dll files should be.


Comments