调用Lua出错

时间:2021-06-12 21:51:32

错误提示:Could not load file or assembly 'lua51' or one of its dependencies. An
attempt was made to load a program with an incorrect format.

在iis使用了Lua的dll lua51.dll,发现打开网页的时候提示以上错误信息。

原因:lua51是在32机器上编译的,而服务器是64位机器。

处理方式:将iis的应用程序池改成允许使用32位就好。

调用Lua出错