I am trying to get a Lua system working in my .NET 4.0 application. I am using LuaInterface as the wrapper for Lua, which is compiled under .NET 4.0
The application runs perfectly fine when running Lua scripts on my development computer, which has VS2010 installed. But when running it on another computer I get a FileNotFoundException.
System.IO.FileNotFoundException: Could not load file or assembly 'lua51.dll' or one of its dependencies. The specified module could not be found.
The lua51.dll is in the same folder as the application, so I don't see any problem there. So that must mean that it cannot find a file that lua51.dll depends on. And this is the problem.
Which files do I need to get my users to install to get this working correctly?
You can analyze this by using Fusion Binding logging. This can be done at the command line, logged to a file, or viewed through a GUI interface (FUSLOGVW.exe). Begin here and see if that gets you started.