Re: [Mono-dev] Minimal required set to Redistribute Mono

2011-03-24 Thread vinay_rk
I have now made a sandbox directory where I have copied all the mono dylib's and managed assemblies I felt were required. But how do I tell the Mac OS to not look at the default /Library/Frameworks/Mono.Framework .. path for required assemblies because I have removed the mono.framework from

Re: [Mono-dev] Minimal required set to Redistribute Mono

2011-03-24 Thread vinay_rk
Is there a command line interface to MonoMacPackager ? My project is not on Mono Develop, the actual development is on windows in visual studio and I build it using MSBuild. The reason being that there are far too many csproj's and we can't possibly make a solution that has all the projects. So

Re: [Mono-dev] Minimal required set to Redistribute Mono

2011-03-23 Thread vinay_rk
Hi Miguel, Thanks for the response. Are you suggesting that I run mkbundle/monomac tool on my assemblies to find out what mono libraries I need ? I can start trying that, but the issue is that we are planning to use mono in our product (written in .Net) which consists of quite a large number of

Re: [Mono-dev] Embedding Mono

2011-03-22 Thread vinay_rk
Thanks Tom... !! That looked like the issue.. !! I didn't worry about that earlier coz the domain seemed to get created just fine with such a string... Regards -Vinay -- View this message in context: http://mono.1490590.n4.nabble.com/Embedding-Mono-tp3345310p3398536.html Sent from the Mono -

[Mono-dev] Minimal required set to Redistribute Mono

2011-03-22 Thread vinay_rk
Hi, I' am trying to understand what are the minimal required runtime libraries needed if I need to redistribute Mono with my application. We had the impression initially that we would have installation of Mono Framework as a pre-requisit on end computers (mostly Mac). Now it has been decided to

Re: [Mono-dev] Embedding Mono

2011-03-18 Thread vinay_rk
Hi, After several tests with Mono Embedding on Mac OSX on returning to Windows, I see that the first issue that I started this thread with is still the same on windows (Things seem to be fine on Mac). The code I have on windows is as follows: MonoDomain *domain; MonoAssembly *assembly;

Re: [Mono-dev] Embedding Mono

2011-03-17 Thread vinay_rk
Hi, I' am compiling my App from MonoDevelop (with Gcc under the hood). I tried using mono_assembly_setrootdir to set the path to the mono Libraries where MonoPosixHelper.dll and libMonoPosixHelper.dylib are present but it doesn't change anything, I still get the dll not found exception. I also

Re: [Mono-dev] Embedding Mono

2011-03-17 Thread vinay_rk
Hi Robert, Thanks for the suggestion... I tried a slight modification of what you posted.. : mono_set_dirs (NULL, NULL); so that the default paths from the installation is applied. My use cases guarentee a Mono framework installed on OSX so I can safely do this. Regards -Vinay -- View this

Re: [Mono-dev] Embedding Mono

2011-03-15 Thread vinay_rk
Hi, I got the thing to work... but I' am not very thrilled with the resolution... It seems like it'll work only if I use the same string for both MonoDomain creation thru mono_jit_init and also for loading assembly thru mono_domain_assembly_open.. In essense I am having to pass the assembly file

Re: [Mono-dev] Embedding Mono

2011-03-10 Thread vinay_rk
Hi Robert, Thanks for the response. As per your suggestion I tried both v4.0.30319 and v2.0.50727 in the mono_jit_init call and used the MonoDomain created from this call to invoke mono_domain_assembly_open. The behavior is still the same. Also for your suggestion about mono_jit_exec, I will try

Re: [Mono-dev] Embedding Mono

2011-03-10 Thread vinay_rk
Hi Duane, My Mono version is 2.8. And I have been trying this both on Windows XP and Mac OSX (Leopard and Snow Leopard). And the behavior is exactly the same mono_domain_assembly_open returning a null pointer. I' am totally stumped with trying to figure out what could be wrong with just these 2

[Mono-dev] Embedding Mono

2011-03-09 Thread vinay_rk
Hi, I' am trying to Embed Mono with C/C++ and so far I've been able to compile and link my c++ project with the required Mono headers and lib. My code looks something like this: MonoDomain *domain; MonoAssembly *assembly; domain = mono_jit_init (system); assembly =

[Mono-dev] How to get the Volume UUID on MAC

2010-11-16 Thread vinay_rk
Hi, Is there any way to get the Volume UUID on a Mac using mono. On windows one would usually resort to platform invoke on KERNEL32.dll to GetVolumeInformation(). The DriveInfo class seems to not help.. Thanks in advance -Vinay -- View this message in context:

Re: [Mono-dev] Unable to work with Configuration files

2010-11-01 Thread vinay_rk
I' am using Mono 2.8 -Vinay -- View this message in context: http://mono.1490590.n4.nabble.com/Unable-to-work-with-Configuration-files-tp3014524p3022188.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing

Re: [Mono-dev] Unable to work with Configuration files

2010-10-28 Thread vinay_rk
It really seems like a bug with XBuild because when these projects with MSBuild, I don't see this happening. I now have to see what settings in a csproj results in this buggy behavior by XBuild. Has anyone had a situation like this ? with system dll's found copied to the local path after running

Re: [Mono-dev] Unable to work with Configuration files

2010-10-27 Thread vinay_rk
So it makes it more mysterious that the stack trace goes through WindowsIdentity.Impersonate(). All I' am calling in my code is ConfigurationManager.GetSection(NameOfCUstomSection). The rest is supposed to be happenening within the framework (In this case the mono framework). The same code works

Re: [Mono-dev] Unable to work with Configuration files

2010-10-27 Thread vinay_rk
I still don't know how the System.Configuration.dll is being copied into the output directory. Copy local has not been enabled on any of the references. After some inspection I found that System.dll, System.Security.dll and mscorlib.dll are also being copied to the output directory. And I also

[Mono-dev] Unable to work with Configuration files

2010-10-26 Thread vinay_rk
Hi, When I run my app (that is built using XBuild) in Mono from the command prompt (using command Mono exe name ) , I always get the below error whenever the app tries to access the config file. Basically the App is trying to open some custom config sections. Error: FATAL[1]

Re: [Mono-dev] Unable to work with Configuration files

2010-10-26 Thread vinay_rk
What I' am doing in my AppConfig is define custom sections like this : configuration configSections section name=CustomSectionName type=FullQualifiedNameOfCustomSectionHandler/ - - The custom handler derives from System.Configuration.ConfigurationSection. There