How to reference a .dll

Nov 26, 2008 at 3:33 PM
Edited Nov 26, 2008 at 7:13 PM
I am having a great time using python with silverlight - thanks!

How can I reference a .dll?

I put it in the app folder so I assume chiron sees it.

Tried with clr like:

import clr
from OEC.API import *
from OEC.Data import *

get: IOError: Could not add reference to assembly API.dll

Also, this .dll accesses web services, will it it be "sandboxed" in any way if it is loaded from the xap?

Thanks muchly,

FWIW the reference works fine with ipy...

Nov 26, 2008 at 6:25 PM
Edited Nov 26, 2008 at 7:12 PM

I also tried with a fully quaulified name:

clr.AddReference("API.dll, Version=, Culture=neutral, PublicKeyToken=null")

Got the same error.


Nov 26, 2008 at 7:06 PM
same error with:

clr.AddReference("API, Version=, Culture=neutral, PublicKeyToken=null")
clr.AddReference("API, Version=, Culture=neutral, PublicKeyToken=b6b45f27e2749b17")
Nov 26, 2008 at 7:11 PM
same with:
clr.AddReference("API, Version=, Culture=neutral, PublicKeyToken=b6b45f27e2749b17, processorArchitecture=MSIL")