[Ironpython-users] Problem with embedding IronPython into Silverlight Application

Slide slide.o.mix at gmail.com
Thu Apr 19 19:12:29 CEST 2012


It's not throwing a SecurityException, its throws a
MemberAccessException (which does NOT inherit from SecurityException
either).

slide

On Thu, Apr 19, 2012 at 10:05 AM, Jeff Hardy <jdhardy at gmail.com> wrote:
>
> On Thu, Apr 19, 2012 at 7:45 AM, Slide <slide.o.mix at gmail.com> wrote:
>>
>> No, that is correct, SL5 does include the FEATURE_ASSEMBLY_LOCATION
>> property in the build, so you should be getting that code when you
>> disassemble. Can you check if there is anything in the InnerException when
>> you catch it?
>
>
> SL5 has Assembly.Location, but it looks like it's not allowed to be used in
> a browser context (desktop/trusted SL might be different).
>
> We could remove the FEATURE, but then trusted apps would be less functional
> (not sure this is an issue). Or, we catch the SecurityException and proceed
> without the prefix.
>
> Mattias, can you open an issue for this please?
> (http://ironpython.codeplex.com/WorkItem/Create). Ideally include a small,
> self-contained reproduction (the whole VS project, if possible).
>
> - Jeff



-- 
Website: http://earl-of-code.com


More information about the Ironpython-users mailing list