Embedding both IronRuby and IronPython

I am trying to run both iron ore and ironpython in a sample application. I get an exception - Unhandled exception: System.Reflection.TargetInvocationException: The exception has been selected as the target of the call. ---> System.Reflection.TargetInvocat ionException: Could not load language 'IronPython 2.6.2': Could not load file or assembly 'Microsoft.Dynamic, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 3 1bf3856ad364e35' or one from his dependencies. The system cannot find the spe cified file. ---> System.IO.FileNotFoundException: Failed to load file or assembly 'M icrosoft.Dynamic, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364 e35' or one of its dependencies.

What to do? How to fix it?

+2
source share
1 answer

See my answer to another similar question. IronPython and IronRuby depend on the operation of other libraries. One of these libraries is Microsoft.Dynamic, which your application seems unable to find. Make sure the DLL is in the same directory as your application (or in the GAC).

I believe this exception has nothing to do with using IronPython and IronRuby in the same project; it is just a coincidence.

+3
source

Source: https://habr.com/ru/post/1344186/


All Articles