Unfortunately, the Silverlight and desktop CLRs aren't binary-compatible -- you're basically linking against a different set of strongly-named assemblies when you're building a Silverlight version. You'll almost certainly need to contact the vendor and ask them to provide support for Silverlight in order for it to be usable there. This may not require much more work than a simple rebuild, but if they've used any APIs that aren't supported under Silverlight (like .NET serialization or the original collection classes) then they'd need to modify the source code as well.<br>
<br><div class="gmail_quote">On Wed, Nov 26, 2008 at 9:44 PM, Nummers <span dir="ltr"><<a href="mailto:danummer@gmail.com">danummer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Wow , that was fast...</div>
<div> </div>
<div>Anyway no I did not / can not, this is a third party dll. From the docs "Technically, it is a .NET 2.0 assembly (DLL library), ..."<br><br></div><div><div></div><div class="Wj3C7c">
<div class="gmail_quote">On Thu, Nov 27, 2008 at 12:37 AM, Curt Hagenlocher <span dir="ltr"><<a href="mailto:curt@hagenlocher.org" target="_blank">curt@hagenlocher.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">You've built two different versions of API.dll -- one for the desktop CLR and one for Silverlight -- yes?<br>
<br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Wed, Nov 26, 2008 at 9:35 PM, Nummers <span dir="ltr"><<a href="mailto:danummer@gmail.com" target="_blank">danummer@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div></div>
<div>Just getting going on Ipy / Silverlight and hit a roadblock.<br> <br>This works on ipy but gives an error w/ Ipy in Silverlight (IOError: Could not add reference to assembly API.dll).<br> <br>import clr<br>
clr.AddReference('API.dll')<br>from OEC.API import *<br>from OEC.DATA import *<br> <br>same kind of error with:<br>clr.AddReference("API, Version=<a href="http://3.2.0.0/" target="_blank">3.2.0.0</a>, Culture=neutral, PublicKeyToken=b6b45f27e2749b17")<br>
and with:<br>clr.LoadAssemblyByName("API, Version=<a href="http://3.2.0.0/" target="_blank">3.2.0.0</a>, Culture=neutral, PublicKeyToken=b6b45f27e2749b17")<br> <br>Now, this gives no error:<br>clr.AddReferenceToFile("API.dll")<br>
However the imports fail (ImportError: No module named OEC.API<br> <br>Not too much experience loading assemblies but, as I said, all is well in ipy.<br> <br>Hope I'm just doing something stooopid.<br> <br>Very much appreciate any help!<br>
<br>Dano <br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>