[IronPython] clr assembly reference error in Ipy / Silverlight (but works in ipy)

Curt Hagenlocher curt at hagenlocher.org
Thu Nov 27 06:37:49 CET 2008


You've built two different versions of API.dll -- one for the desktop CLR
and one for Silverlight -- yes?

On Wed, Nov 26, 2008 at 9:35 PM, Nummers <danummer at gmail.com> wrote:

> Just getting going on Ipy / Silverlight and hit a roadblock.
>
> This works on ipy but gives an error w/ Ipy in Silverlight (IOError: Could
> not add reference to assembly API.dll).
>
> import clr
> clr.AddReference('API.dll')
> from OEC.API import *
> from OEC.DATA import *
>
> same kind of error with:
> clr.AddReference("API, Version=3.2.0.0, Culture=neutral,
> PublicKeyToken=b6b45f27e2749b17")
> and with:
> clr.LoadAssemblyByName("API, Version=3.2.0.0, Culture=neutral,
> PublicKeyToken=b6b45f27e2749b17")
>
> Now, this gives no error:
> clr.AddReferenceToFile("API.dll")
> However the imports fail (ImportError: No module named OEC.API
>
> Not too much experience loading assemblies but, as I said, all is well in
> ipy.
>
> Hope I'm just doing something stooopid.
>
> Very much appreciate any help!
>
> Dano
> _______________________________________________
> 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/20081126/5c049c39/attachment.html>


More information about the Ironpython-users mailing list