[IronPython] Accessing assembly names from Silverlight

Michael Foord michael at voidspace.org.uk
Mon Apr 26 01:28:53 CEST 2010

Hello all,

The following code dies in Silverlight:

import clr
"System.Xml" in [assembly.GetName().Name for assembly in clr.References]

SystemError: Security transparent method 
System.Reflection.Assebly.GetName() cannot access 
Microsoft.Scripting.Actions... using reflection.

This is making it less useful to port the IronPython dotnet integration 
tutorial to Try Python. :-)

Repeated calls throw a slightly different error in the end (still a 
system error - but a different message).

All the best,

Michael Foord


READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

More information about the Ironpython-users mailing list