mono

Embedding Mono Confusion

I'm trying to use the following instructions to embed the Mono runtime in a C++ program. http://www.mono-project.com/Embedding_Mono To initialize the runtime, you have to call mono_jit_init with an input parameter called file_name. They say that file_name is the name of the main assembly file. - What do they mean by "main assembly file...

Byte Order Mark generating a file using Mono in Ubuntu

Hi people! My .NET utility AjGenesis is a code generation tool. The compiled binaries runs without glitches under Ubuntu 10.x, and Mono. But I have a problem: generating a java text file (a normal text file for my tool) it generates Byte Order Mark at the beginning of each file. I'm using System.Text.Encoding.Default: in Windows, all OK...

How could I create a cross platform interprocess communication between .NET and Java?

I want to develop a certain plugin/extension, which needs to run in eclipse and has to integrate with another (java) plugin, but it has to collect data from .NET assemblies (using mono's cecil). So my question is how should I create this relation between the Java code and the .NET? I know that I could use mono to run the .net applicati...

P/Invoke C# to C++

Hi, I'm trying to learn how to run C# and C++ code together using Mono on RedHat. I'm fooling around in order to learn how to get the two to interoperate together in order to be a bit more educated when I work on a larger project. I've got a problem that I'm making a P/Invoke call from the C# to my C++ code and an exception is being th...

Does the Common Service Locator support Mono .NET?

Does the Common Service Locator, used for "providing an abstraction over IoC containers and service locators", support Mono .NET? ...

pathnames for data files in nunit tests

In MonoDevelop, at least, I find that nunit tests launch with a CurrentDirectory of the bin directory. There's no apparent run option to change that. Is there some nunit-y nice way to locate data files, or should I just set an environment variable in the run configuration? ...

Causes of WARNING **: _wapi_handle_unref: Attempting to unref unused handle

When I run my app under Mono I keep getting a ton of these "warnings". Is there any way to find a root cause of this? I noticed that they start appearing after I write something to NLog (v. 1.0.0.1846), and, eventually, NLog seems to stop logging things altogether. Have you experienced same thing? It is running under Mono 2.6.7 and Ubu...

c# create or modify file/directory permission: add group read permission using asp.net with mono and apache2

How can I change/set permissions of a file or directory using asp.net under mono and apache2? I have an aspx page that needs to check if a directory exists, if not, it must be created, but with group read permissions set. Tried with DirectorySecurity, but it throws PlatformNotSupportedException. Apache is using www-data user and all ...

C# Mono on Unix - File system ACLs

Are there methods in Mono C# to interact with file ACLs and extended ACLs? I found the assembly Mono.Posix.dll, and the class UnixFileInfo. This can give me nice things like the owner group and user, but no ACLs. Does it exist? Or would I have to basically use DllImport for everything? ...

Making UDP lose less messages in .NET/Mono

Hello, we are currently performing some benchmarks for an open source academic project, Logbus-ng. It basically implements Syslog protocol over UDP (RFC 5426) and TLS (RFC 5425). We know that the advantage of TLS is reliability (ie. we won't lose messages) but with the drawback of performance. We have a benchmarking client and also a sp...

Does NDepend run on Mono/Linux?

I'd like to use NDepend at home for an open source project, but I can't find if it run on linux with mono 2.6.8. Any one have succesfully used it on a mono only machine? ...

Recursively enumerate files and dirs in C#

On MacOS using Mono, when I list files and dirs with Directory.GetFiles() I get System.UnathorizedAcessException and it stops enumerating. Anyone knows how to make it continue or maybe a different approach to enum files EDIT: I wrote my own method, seems to work. static void DirSearch(string sDir) { try { fo...

possible to connect a tcp client on windows to a server on linux ?

writing a server that runs on linux (Ubuntu) using mono. and a client that runs on windows using .net, can i connect to the server in linux. i will use c# for both server and client programming. ...

Will a C# program for Windows run in Ubuntu under Mono without modification?

i want to write a tcp server in c# under windows. can i run the same program or use the same code under mono without modification. ...

can i work on mono under Windows xp ?

i do have ubuntu installed on my system now. but it is not booting up. so can i work on mono under windows xp sp3. ...

Tail Call Optimization in Mono/Ironpython

Hi Everyone, given that CLR supports tail call optimization I was wondering if Mono, and consequently Ironpython running on Mono has support for TCO ? ...

MEF and moonlight

Hello, I am trying to figure out if MEF and moonlight work together. I heard Mono 2.8 got MEF already included. Although, will the full MEF work for moonlight applications? For now I am using this adapted moonlight library http://mefcontrib.codeplex.com/releases/view/35019. Although, some functionality is stripped or this library is...

Strange extra characters in rendered html on IE 8

I have an ASP.Net MVC site that I want to render some custom HTML 5 canvasses in. I am getting a strange issue with the server serving up extra characters that are not in the source code. In order to use an HTML 5 canvas in IE 8 you have to add the following tag in the html head: <!--[if IE]><script src="../../Scripts/excanvas.js"></sc...