Hi Michael, 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=1.0.0.0, 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? - John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Wednesday, July 18, 2007 4:45 PM To: Discussion of IronPython Subject: [IronPython] Silverlight - Adding References to Assemblies 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 _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com