mono

Is it possible to run ASP.NET MVC 1.0 web apps on Mono 2.4.x ?

Hi, I have searched various online resources and found conflicting information about the possibility of ASP.NET MVC 1.0 web apps running against the latest build of Mono (2.4.x). According to the Mono site, ASP.NET 2.0 is supported. According to Microsoft, ASP.NET MVC 1.0 requires the 3.5 version of the framework. From what I've read...

Httpd.conf multiple VirtualHost sections (was: Mono ASP.NET MVC AutoHosting issues)

I'm doing exactly this by trying to disable AutoHosting. However now I get "Failed to connect to mod-mono-server after several attempts to spawn the process." in the logs. The path is correct Here's my config: <VirtualHost *:80> ServerName myserver.com DocumentRoot /home/abe/html/ MonoServerPath myserver.com "/usr/loca...

Overhead of Mono Tasklet/Co-Routines

Hi, What are the main performance overheads (gc/stack copying...) of the new Mono Continuations/Tasklet framework? How does this overhead (coroutine performance / raw performance) compare to other frameworks such as Lua Coroutine and stackless python? In Mono 2.6 continuation/coroutines support will be added. I built a svn version and...

Embedding Mono - Overhead of a native -> managed context switch.

Hi, Anyone got any details on the overhead of a native -> managed context switch in Mono? Namely the overhead caused by calling .NET methods/creating .NET objects using the C API. Thanks. ...

ASP.NET MVC on Mono

Hi I've installed MonoDevelop and latest version of Mono itself. But i still can't install MVC add-in since i have a dependency conflict: Core v2.0, Code.Gui v2.0 etc. But my repository http://go-mono.com/md/2.1.0/main.mrep doesn't contain ANY updates. Is there any way to find the WORKING repository? Thank you! ...

Mono : Set a program to launch at startup for alternative OS

I have an application that is programmed in C# 3.5 under Windows. This application is also Mono-compatible so it is also used on MacOs and Linux operating system. There is a "Launch at startup" option in my application. For now, it is greyed when the operating system is not windows as I'm using the registry. But I'm looking for a way ...

"ignoring" P/Invoke when running on Mono

I have a WinForms Application that I want to run at Mono at some point. However, it is using some P/Invoke against user32.dll, which will cause an obvious problems. However, this is not a critical functionality, just some flavor stuff. So I would like to ignore it when running Mono. I know I could just use an #if directive, but then I ...

Using npgsql to call a function that takes character as parameter

I am trying to use Npgsql to invoke a function (stored procedure) that takes a CHARACTER as parameter, but it doesn't work. If I declare the same function without parameters, or with an INTEGER parameter, I get the result sets that I want. When I declare the parameter as CHARACTER, it stops working. What is wrong? Here is the code of my...

How can I expose a .Net 2.0 Webservice to a Silverlight client?

I have a trivial .Net 2.0 SOAP web service. I want to access it from Silverlight application that is hosted on the same server, but different port. I know that for this to work I need to provide a clientaccesspolicy.xml or crossdomain.xml policy file (the service is available at http://example:8085/RemoteObject.rem?wsdl , so the policy f...

Mono and ASP.NET Web Application Connected to MS Access

Hello: I developed an ASP.NET web application that reads an MS Access database with ADO.NET. This application will have to be run on Linux with Mono. Unfortunately, I am having problems getting Mono to work with the ADO.NET database connection. With the connection string enabled on an onLoad event, the web app will not render; howe...

Equivalent of user32.dll on OS X

I am writing a library which uses a few functions from the windows user32.dll library, but I am compiling it with Mono to see how it fares on OS X. Unfortunately it cannot find the user32.dll library for obvious reasons. But my question is this ... is there a similar library on OS X which I can use? I am specifically looking for the fol...

Calling C# from native C++, without /clr or COM?

This question has been asked before, but I never found a truly satisfying solution - I have a class library written in C#, and I want to call it from a legacy native C++ application. The host application is truly native, compiled on Windows & Linux, its a console application. So how can I make it call the C# class library, assuming usin...

Design Pattern Alternative to Coroutines

Hi, Currently, I have a large number of C# computations (method calls) residing in a queue that will be run sequentially. Each computation will use some high-latency service (network, disk...). I was going to use Mono coroutines to allow the next computation in the computation queue to continue while a previous computation is waiting f...

Destroying Windows in GTK#

I have a dialogue in GTK# that gets opened by a mouse click, and after clicking a button in it, the dialogue should be closed again. Do I have to call both methods Hide() and Destroy() on the window? Here is my code to launch the dialogue: protected virtual void ConfigureDialogue (object sender, System.EventArgs e) { MyConfigWindow...

How to convert a simple .Net console project a into portable exe with Mono and mkbundle?

Hello, I'd like to convert my simple pure .Net 2.0 console utility into a portable exe which I could just put on an USB stick and run without having to worry whether the CLR and framework libraries are installed on a particular machine or not. Stackoverflow already has some information on using Mono and Mkbundle for creating self-con...

Robust way to send and handle messages for a distributed system

I'm working on a small distributed system, which is completely message driven. Right now, I usually open up a socket each time I have to send something and close it right afterwards. State is only maintained on the server side (for instance, if no message arrives for 5 minutes from a client, consider it dead). However, I have to do some...

Mono Continuations - Memory keeps increasing after store()

Hi, Here's Mono Continuations' continuation_store (...). From looking at the code below, it appears as though store() follows these two branches: cont->saved_stack && num_bytes <= cont->stack_alloc_size use the memory directly else gc free the used memory, and create some new memory. However, the weird thing is if I repeatedly ...

How can I get some more RDBMS features but still use SQLite?

I've decided to use SQLite for my personal development project, because it just sprung up out of my computer seemingly of its own volition and I wanted to learn more about it. The problem is, I'm starting to really miss a lot of the features I'm accustomed to with heavyweight RDBMS's: stored programs, constraints, DRI, complex datatypes ...

GTK# trouble... sorry I can't think of a clever title, so sue me =/

Here's the poop; I am working on a game for an assignment for my college courses and am being forced, essentially, to use C#, so on my laptop I am using Monodevelop with Debian Linux. Trouble is that GTK# apps won't run on Windows unless the dependencies are installed, which is a problem as my Uni's computers don't have that. My question...

Retrieving machine information from .NET/Mono

I'm wondering if is it there any easy, and common between .NET and Mono, way to retrieve machine statistics (eg. free space left, total memory, etc.). Under the .NET 2.0 profile I was able to identify DriveInfo class, but in the previous versions (1.0, 1.1) and Compact framework, which I would like to support, there's nothing like this. ...