[IronPython] "GetSearchPaths" does not return the default directories when run in a new Appdomain

2010-08-20 Thread mohammad mustaq
Hi, When I create a python engine in a new Appdomain the "GetSearchPaths" method return only the current directory. In default domain it returns "Lib" as well as "Dll" directory in IronPython 2.6.1. Is there a way to get these search paths while the engine is created in a new Appdomain. The reaso

Re: [IronPython] Microsoft.Scripting Assembly Version 1.0 does not contain Microsoft.Scripting.Hosting.Shell Namesapce

2010-08-16 Thread mohammad mustaq
Yes, it has the required namespace. Thanks :) On Mon, Aug 16, 2010 at 8:39 PM, Dave Fugate wrote: > Try Microsoft.Dynamic.dll ;) > > > > Dave > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *mo

[IronPython] Microsoft.Scripting Assembly Version 1.0 does not contain Microsoft.Scripting.Hosting.Shell Namesapce

2010-08-16 Thread mohammad mustaq
Hi, I was using Microsoft.Scripting.dll (version 0.9) which was packaged with Iron Python 2.0.1. This assembly contains "Microsoft.Scripting.Hosting.Shell" Namesapce. I was using an Enum "Style" from this namespace. Now I upgraded to Iron Python 2.6.1. Here I observed that Microsoft.Scripting asse

Re: [IronPython] Query regarding Proxy Object lease period

2010-08-11 Thread mohammad mustaq
And > doing the same in MbrBase will make it stay alive forever as well. > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *mohammad mustaq > *Sent:* Wednesday, August 11, 2010 7:25 PM > > *To:* Discussion

Re: [IronPython] Query regarding Proxy Object lease period

2010-08-11 Thread mohammad mustaq
not sure I can quickly cook up an example. > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *mohammad mustaq > *Sent:* Wednesday, August 11, 2010 7:30 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython]

Re: [IronPython] Query regarding Proxy Object lease period

2010-08-11 Thread mohammad mustaq
f this) on the client > side and then call ILease.Register so the object can call back to your > sponser. > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *mohammad mustaq > *Sent:* Tuesday, August 10, 2010 6:43 AM &

[IronPython] Query regarding Proxy Object lease period

2010-08-10 Thread mohammad mustaq
Hi, I posted this last week and I did not get a response.Hence posting it again. I have an application that creates a python engine in a new appdomain. If I do not specify a lease period I see that the objects are disconnected when I leave it idle for a period of 5 minutes. I used "InitializeLife

[IronPython] Query regarding Proxy Object lease period

2010-08-03 Thread mohammad mustaq
Hi, I have an application that creates a python engine in a new appdomain. If I do not specify a lease period I see that the objects are disconnected when I leave it idle for a period of 5 minutes. I used "InitializeLifetimeService" to keep the object alive forever but it did not work. The "dlr-sp

[IronPython] Query regarding Object lease period

2010-08-03 Thread mohammad mustaq
Hi, I have an application that creates a python engine in a new appdomain. If I do not specify a lease period I see that the objects are disconnected when I leave it idle for a period of 5 minutes. I used "InitializeLifetimeService" to keep the object alive forever but it did not work. The "dlr-sp

Re: [IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception

2010-04-10 Thread mohammad mustaq
Hi Dino, Is there any update on this. Should you need more details let me know. thanks, Mustaq On Wed, Apr 7, 2010 at 10:40 AM, mohammad mustaq wrote: > Hi Dino, > > If have tweaked your code to reproduce the exception that I am facing. Let > me know if you need more details

Re: [IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception

2010-04-06 Thread mohammad mustaq
t;); > > mbr.DoItVirtually(); > > mbr.DoIt(); > > } > > } > > > > public class MbrBase : MarshalByRefObject { > > public virtual void DoItVirtually() { > > Console.WriteLine("Did it virtually {

[IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception

2010-04-05 Thread mohammad mustaq
Hi Dino, If have tweaked your code to reproduce the exception that I am facing. Let me know if you need more details. thanks, Mustaq using System; using Microsoft.Scripting; using IronPython.Hosting; using Microsoft.Scripting.Hosting; class Foo { public static void Main(string[] args) {

[IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception

2010-03-29 Thread mohammad mustaq
Hi, I have IronPython embedded in my C# application. I face issues while creating the python engine in a different appdomain. It is imposed that every class in IronPython inherit the .NET base class say ClassA. ClassA is derived from MarshalByRefObj as I need to pass an instance of this class to