C# Error on application startup - could not load file or assembly -
some users (i ~10%) exeperiences problem while trying run application written in c# (.net 4.0) - @ application startup such error occures:
could not load file or assembly 'lua51.dll'. such module not found.
- translation, in eng version similar.
the problem of users don't experience problem, , lua51.dll present in program's directory. reason of error?
i have set platform: x86 in project->bulid options, error occurs.
this common problem, many programmers copy dll without realizing lua51.dll has dependent dlls need installed well. error message windows sadly unhelpful, doesn't report true cause of problem. event in applciation log does, not enough users @ it.
unfortunately doesn't go wrong enough, lots of machines have dependent dlls available. accident, cannot rely on it. odds lower , lower well, dependency getting old.
you'll need read install notes know required:
lua windows , it's modules depend on msvc++ 2005 runtime library. lua windows install automatically download runtime , install if don't have runtime installed on computer. runtime contained in file vcredist_x86.exe
so either rely on lua installer or vcredist installed yourself.
Comments
Post a Comment