[Moonlight-list] Getting a basic IronPython SL app working in Moonlight

Jimmy Schementi jschementi at gmail.com
Tue Jul 21 04:19:14 EDT 2009


I'm trying to get a simple IronPython application working in Moonlight:
http://jimmy.schementi.com/silverlight/sl-ipy-clock
(Download: http://jimmy.schementi.com/silverlight/sl-ipy-clock.zip)

This works in Silverlight 2 and Silverlight 3, but not Moonlight 1.9.6. And
the error is unfortunately not that helpful:

Unhandled Error in Silverlight 2 Application
Code: -1
Category: RuntimeError
Message: A type load exception has occurred.
MethodName: 0

file:///srv/www/htdocs/clock/error.js
Line 31

Also, the Python WebIDE (
http://www.voidspace.org.uk/ironpython/webide/webide.html) does not work,
though is site says it does (
http://go-mono.com/moonlight/MoonlightStatus.aspx?v=2). FWIW, most of the
examples on that page do work for me. The error message this encounters is a
bit more descriptive: this app uses a slightly-undocumented feature (I've
documented it on my blog =P) which will load an assembly outside the XAP
file if a the AppManifest.xaml file has a <AssemblyPart Source="<uri>" />
element where <url> is a rooted relative URL (eg /deploy/IronPython.dll) or
a fully-qualified URI. And it seems that Moonlight doesn't support this yet:

Unhandled Error in Silverlight 2 Application Code: 2105 Category:
RuntimeError Message: Trying to load the assembly
'/deploy/Microsoft.Scripting.ExtensionAttribute.dll' outside the XAP
directory. MethodName: 0

I've installed the Moonlight 2.0 Preview 7 (1.9.6) on the VMware Suse VM
here: http://ftp.novell.com/pub/mono/appliance/2.4.2.1/Mono-2.4.2.1-vmx.zip.

What is the preferred way I can debug a Moonlight app so I can give you guys
better bug reports?

Thanks!
~Jimmy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/moonlight-list/attachments/20090721/fd8ba1d2/attachment.html 


More information about the Moonlight-list mailing list