[IronPython] Loading a static lib a second time in hosted ironpython

Lukas Cenovsky cenovsky at bakalari.cz
Thu Feb 3 17:28:21 CET 2011


It looks like IronPython cannot find your .dll. Check whether you have 
MathHelpLib.dll along with all dependencies in your sys.path.

--
-- Lukás(

On 3.2.2011 17:00, Brian Ashcroft wrote:
>
> Hello,
>
>    I have an ironpython instance running within my application.  This 
> instance is used to control the application.  I have a math dll that I 
> reference in the hosting application that I would like to be able to 
> use also in the ironpython scripting.  However, I get error messages 
> when I try to add the reference.  I have tried the ironpython console 
> (ipy.exe) in the application directory and the dll loads just fine and 
> is completely usable, but when I try the following code in the 
> application, I get an error
>
> *import *clr
>
> clr.*AddReferenceToFile*('MathHelpLib.dll')
>
> *from *MathHelpLib *import **
>
> With the error:
>
> Could not add reference to assembly MathHelpLib
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110203/48139121/attachment.html>


More information about the Ironpython-users mailing list