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

2012-04-19 Thread Jeff Hardy
On Thu, Apr 19, 2012 at 3:43 PM, Slide wrote: > Since modules aren't loaded from the file system the same way on SL, I > think it shouldn't cause too much of an issue. You can rebuild IP with the > change and see if it causes any other issues. Yeah, GetPrefix() isn't really critical. It just se

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

2012-04-19 Thread Slide
om > > www.wintellect.com > > ** ** > > *From:* Mattias Ahlenius [mailto:matt...@goodsolutions.se] > *Sent:* Thursday, April 19, 2012 2:16 PM > *To:* Slide > *Cc:* Keith Rome; ironpython-users@python.org > *Subject:* Re: [Ironpython-users] Problem with embedding IronPyth

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

2012-04-19 Thread Keith Rome
gt; From: Mattias Ahlenius [mailto:matt...@goodsolutions.se] Sent: Thursday, April 19, 2012 2:16 PM To: Slide Cc: Keith Rome; ironpython-users@python.org Subject: Re: [Ironpython-users] Problem with embedding IronPython into Silverlight Application I've put together a small testproject, w

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

2012-04-19 Thread Mattias Ahlenius
gt; 2012/4/18 Keith Rome >>>>>> >> >>>>>> >> Does this not work for you? >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> using IronPython.Hosting; >>&g

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

2012-04-19 Thread Slide
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 wrote: > > On Thu, Apr 19, 2012 at 7:45 AM, Slide wrote: >> >> No, that is correct, SL5 does include the FEATURE_A

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

2012-04-19 Thread Jeff Hardy
On Thu, Apr 19, 2012 at 7:45 AM, Slide 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.

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

2012-04-19 Thread Slide
>> >>>>> >> _python = Python.CreateEngine(); >>>>> >> >>>>> >> >>>>> >> >>>>> >> I believe that should handle the simple/typical scenarios, unless >>>>> you need >>>>

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

2012-04-19 Thread Mattias Ahlenius
>> >> I believe that should handle the simple/typical scenarios, unless >>>> you need >>>> >> to alter the environment (such as plugging in a custom Host/PAL). >>>> >> >>>> >> >>>> >> >>>&g

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

2012-04-18 Thread Mattias Ahlenius
ons = new Dictionary(); >>> >> >>> >> ScriptRuntimeSetup setup = Python.CreateRuntimeSetup(options); >>> >> >>> >> _runtime = new ScriptRuntime(setup); >>> >> >>> >> _python = Python.GetEngine(_runtime); >&g

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

2012-04-18 Thread Slide
;> >> >> _python = Python.GetEngine(_runtime); >> >> >> >> >> >> >> >> >> >> >> >> This code should work exactly the same on desktop CLR and Silverlight. >> >> >> >> >> >> >> &

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

2012-04-18 Thread Mattias Ahlenius
ilverlight. > >> > >> > >> > >> > >> > >> > >> > >> Keith Rome > >> > >> Senior Consultant and Architect > >> > >> MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS > >> > >>

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

2012-04-18 Thread Slide
gt;> MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS >> >> Wintellect | 770.617.4016 | kr...@wintellect.com >> >> www.wintellect.com >> >> >> >> From: ironpython-users-bounces+rome=wintellect@python.org >> [mailto:ironpython-users-bounc

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

2012-04-18 Thread Mattias Ahlenius
ilto: > ironpython-users-bounces+rome=wintellect@python.org] *On Behalf Of > *Mattias > Ahlenius > *Sent:* Wednesday, April 18, 2012 2:41 PM > *To:* ironpython-users@python.org > *Subject:* [Ironpython-users] Problem with embedding IronPython into > Silverlight Application >

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

2012-04-18 Thread Keith Rome
.@python.org] On Behalf Of Mattias Ahlenius Sent: Wednesday, April 18, 2012 2:41 PM To: ironpython-users@python.org Subject: [Ironpython-users] Problem with embedding IronPython into Silverlight Application Hi, I'm new to scripting and would like to add support for IronPython to our Silver

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

2012-04-18 Thread Mattias Ahlenius
Hi, I'm new to scripting and would like to add support for IronPython to our Silverlight application, I have tried to find an answer on the net but could not find anyone else facing the same problem. The app is an out of browser application. I've added the latest release (2.7.2) from nuget, check