John Messerly wrote: > Good catch. I'll see if we can get that text updated. >
Well - it caught me. ;-) Actually, now I'm getting a different problem. Restarting both browsers doesn't help. Unless you have any insight I will try restarting my machine. System.IO.FileLoadException: Could not load file or assembly 'ScriptableObjects, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053). (Definitely referencing the right System assemblies - I did change the assembly name and even the version whilst trying to get this to work - so a restart might be needed.) Thanks Michael Foord > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord > Sent: Wednesday, July 18, 2007 5:16 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Silverlight - Adding References to Assemblies > > John Messerly wrote: > >> 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") >> >> > Ah.... > > It might be worth mentioning that on this page: > > http://silverlight.net/QuickStarts/Other/ProgramDlr.aspx > > Which provides the example: > > Use the clr.AddReference function to load assemblies, and make their > contents available for import. > > clr.AddReference("MyAssembly") > > But thanks. :-) > > Michael Foord > > > > > > >> (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 >> >> >> > > _______________________________________________ > 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