qlua / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Interface issue with .net 4.0 #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Added reference LuaInterface.dll (from 2.0.3) to the solution
2. No compilation error
3. Runtime error at line >> Lua lua = new Lua();

What is the expected output? What do you see instead?
expected Output: New object created called "lua"

Error:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and 
cannot be loaded in the 4.0 runtime without additional configuration 
information.

What version of the product are you using? On what operating system?
.net 4.0 and LuaInterface.dll lua51.dll (version 2.03)

Please provide any additional information below.
-

Original issue reported on code.google.com by Mr.Solan...@googlemail.com on 10 Dec 2010 at 1:18

GoogleCodeExporter commented 9 years ago
Solution:

1. Get LuaInterface project files from the server
2. Recomplie lua51.dll and luaInterface.dll on .net 4.0
3. Add new .dll's to your project reference directory

Original comment by Mr.Solan...@googlemail.com on 18 Jan 2011 at 5:01

GoogleCodeExporter commented 9 years ago
I'll update the projects and attach a release that supports .NET 4

Original comment by capre...@gmail.com on 8 Aug 2011 at 8:21

GoogleCodeExporter commented 9 years ago
Issue 31 has been merged into this issue.

Original comment by capre...@gmail.com on 8 Aug 2011 at 8:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You need to add the <a 
href="http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx">useLegacyV2RuntimeA
ctivationPolicy</a> attribute to your app.config file. I had the same issue 
when upgrading to C# 4 for a managed DX9 class library.

Original comment by DigiCo...@gmail.com on 25 Oct 2011 at 7:04

GoogleCodeExporter commented 9 years ago
Please fix this and re-release the updated binary. .NET 4.0 has been out for a 
long time now. 

Original comment by ThomasM...@gmail.com on 20 Jan 2012 at 10:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Adding that to the app.config doesn't work for me. However, the binaries here 
worked:  
http://www.mdome.org/2011/05/16/luainterface-for-csharp-net-4-custom-build/

Once caveat, I had to make sure that the target cpu for my application was x86 
(I run Win7 64-bit).

Original comment by wjmurdick on 31 Jan 2012 at 3:08