c# - Cannot load DLL or one of its dependencies -


on dev machine works fine. on test machine can't run .exe because says "lib.dll or 1 of dependencies not found". lib.dll in same directory .exe , ran corflags against both dll , exe: both of them report "pe32" both 32 bit. lib.dll doesn't have other dependencies. removed of them , tested. why else might failing?

i used dependencywalker suggested in comments. dependencywalker showed had couple missing dlls traced belonging visual c++ 2012 redistributable. make sure have correct version of visual c++ redistributable installed on testing/production machines. switched project in visual studio debug release mode, mistake i've made in past, won't making mistake again anytime soon. if leave project in debug mode, dll dependencies different if put release mode. visual c++ redistributable not have debug dlls present, release ones - if testing, change might necessary unless know find debug dlls (which installed visual studio on development machine).


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -