[IronPython] Silverlight - Adding References to Assemblies
Michael Foord
fuzzyman at voidspace.org.uk
Thu Jul 19 01:44:31 CEST 2007
Hello all,
I'm trying to create a Silverlight project that references assemblies
I've created from IronPython code.
I can get the HTML / Javascript / XAML / IronPython combination working
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
System.Windows.Browser):
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.
Michael Foord
http://www.voidspace.org.uk/ironpython/index.shtml
More information about the Ironpython-users
mailing list