[IronPython] Silverlight - Adding References to Assemblies
jomes at microsoft.com
Thu Jul 19 02:13:21 CEST 2007
What does the call to clr.AddReference look like? We currently have a limitation in Silverlight, that we require a fully qualified assembly name, e.g.:
clr.AddReference("MyAssembly, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null")
(We do some magic to map short names to full names for platform assemblies, but not for downloaded assemblies.)
The only other thing I can think of is maybe your DLL is somehow getting compiled against the wrong mscorlib/System binaries. Are the references in the C# project pointing at the Silverlight DLLs?
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Wednesday, July 18, 2007 4:45 PM
To: Discussion of IronPython
Subject: [IronPython] Silverlight - Adding References to Assemblies
I'm trying to create a Silverlight project that references assemblies
I've created from IronPython code.
ok - but I can't reference assemblies that I've compiled.
I'm using Orcas Beta 1 and have created a Silverlight project.
When I use the normal "import clr; clr.AddReference " incantation, it
fails to add the reference.
Anyone got any clues? I can see the dll being fetched from my localhost
server, but I still get an error message.
When I use 'clr.LoadAssemblyByName' instead of 'AddReference' I get a
more descriptive error, complaining that a dependency cannot be found
(the only references my assembly has or needs are System and
Could not load file or assembly 'ScriptableObjects, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot find
the file specified.
Source File: test.py
Exception Details: System.IO.FileNotFoundException: Could not load file
or assembly 'ScriptableObjects, Culture=neutral, PublicKeyToken=null' or
one of its dependencies. The system cannot find the file specified.
users mailing list
users at lists.ironpython.com
More information about the Ironpython-users