mono

DbProviderFactory with Npgsql?

I have a project which I'm trying to port from SQL Server to PostgreSQL. I've got almost everything done I believe except for I can not get DbProviderFactory to work with Npgsql. Factory = DbProviderFactories.GetFactory("Npgsql"); yields Unhandled Exception: System.Configuration.ConfigurationErrorsException: Failed to find or...

How to create an application in .NET to be able to run on Linux or other Operating Systems

I have heard that applications created in .net can be run on linux and other operating system using mono framework. Up to what extent it is true. How it makes an application platform independent. How monoframework recognizes dll's of .net How can i host my site created in asp.net to be hosted on linux server. What all softwares do I n...

How to run C# Desktop Application with extension .exe in Mac OSX?

I installed MonoFramework and I have myproject.exe file.How to run C# Desktop Application with extension .exe in Mac OSX? ...

Should I use .NET/Mono/Tao/OpenTK/... something else?

Hi, I'm pretty confused by the multitude of frameworks to choose from: I would like to be cross platform, possible even try to make an application for my mobile phone. Probably a game, but could be something else. Can I use something else apart from Xna with the Windows Phone? One of the aforementioned frameworks. Tao says that it is a...

mplayer slave mode - can't delete files after watching

Hi I'm using mplayer in my C# app running in .NET on Windows and Mono on Linux. I start mplayer using Process.Start and run it in -slave -idle. To play a video, I write to stdin like this: loadfile {filename} When I'm ready to play the next video, I call loadfile again with the new filename. Problem: if I play a video and then somet...

Is there any way to develop Silverlight applications on OS X?

While all of my machines are Macs, I actually really enjoy working in .NET. I thought it would be fun to try my hand at writing a Silverlight application. Unfortunately, as near as I can tell, Silverlight is not a part of Mono that actually works on OS X. Is it possible to develop Silverlight on OS X, or will I need to use a VM? If it's...

Mono: HttpWebRequest SSL Errors on non-SSL URI

I have a console application that I wrote for .NET/Windows that I suddenly had the need for on my unix system. Mono has, for the most part, been hugely successful at providing this for me. There is however a small issue - The application issues many HttpWebRequests as it runs, and for a small portion of these, Mono is returning an error...

How can I create Script file on Mac OS 10.4.8 to run example.exe file through mono?

I can open Terminal and write mono example.exe, but I want to double click any file,and it run example.exe.How can I do this? ...

MonoDevelop command line compile a solution

Hi! The problem is as follows: I have a MonoDevelop project (ASP.NET) on my development workstation. I'm currently at a customer site, without my regular development environment on my laptop (Regulatory Burden). I have SSH access to my development workstation, but the network is too laggy to handle X11 comfortably. I need to make a ...

Mono Compiler as a Service (MCS)

I'd like to consume Mono's compiler as a service from my regular .NET 3.5 application. I've downloaded the latest bits (2.6.7), created a simple console application in Visual Studio and referenced the Mono.CSharp dll. Then, in my console app (straight out of a sample online): Evaluator.Run("using System; using System.Linq;"); ...

What are the differences between Mono's and Microsoft's ASP.NET implementations?

Hi Everyone, I'm about to launch an ASP.NET web site which will be running on a Linux server using Mono. First I would like to do some testing on my own machine. I have heard lots of info about Mono, but this is the first time I actually use it for a project. So far, I have only deployed my applications on IIS servers. I would like to ...

after using mkbundle2, destination machine can't find libmono.0.dylib

Hi, I have a very simple .NET commandline application that I want to port to OS X. I can run it with "mono app.exe" However, the destination machines won't have mono installed. So, I wanted to bundle mono inside the app. In order to do this, I used mkbundle2: mkbundle2 -o bundledapp.exe app.exe --deps This works without errors, outpu...

pkg-config path for mono on mac

I installed mono in Mac OS X. I was following these instructions on the mono website. The first console application worked because it didn't use any packages. However, when I ran gmcs hello.cs -pkg:gtk-sharp-2.0, it told me I didn't have pkg-config installed. So I installed pkg-config. Now I get this error because pkg-config doesn't know...

How does one determine the amount of internally used buffer capacity for the System.Net.Sockets.Socket.AcceptAsync method?

Hi, The .NET method Socket.AcceptAsync() has a neat feature: The ability to specify an initial buffer that will receive some amount of data immediately after accepting the new connection. This could be useful for exchanging a fixed-length signature, protocol header, session ID or similar initiatory data (and in fact, that is what the MS...

Is developing in Mono cross-platform?

In what measure is developing with mono cross-platform? How do I compile for Windows (in Linux), how do I run things in Linux (because there is no .NET JIT compiler)? So what are the particularities of developing with Mono? What are the advantages over developing with Visual Studio (except cross-platform thinghie)? ...

CosmosBoot with Mono on Mac

Is it possible to install Cosmos User Kit(A C# Operating System) with mono on mac? ...

C# System.PlatformID.Unix vs. Linux

Question: I need to make some system calls in my C# applications. Unfortunately, this behaves differently on Linux than on UNIX. Now I used to switch the Operating system at runtime like this If Environment.OSVersion.Platform = System.PlatformID.Unix Then ' Linux/Unix ' ElseIf Environment.OSVersion.Platform = System.PlatformID.Mac...

"real time" update a Qt TextView

Hi, I have a Qt application with an embedded script/jit. Now I'd like to receive the output from the script on an QTextEdit (more specific QPlainTextEdit). For this purpose callbacks are being issued. The problem I'm facing is that whatever I try the output to the TextEdit is either delayed until the script has finished or gets stuck af...

What parts are needed for a mono based music server?

Hi all, I have recently installed Ubuntu Linux on my machine. This machine is on pretty much all of the time and houses my music collection. I have looked at various solutions for a central repository for music and each one is lacking in one way or another. I have done some .net programming and thought this would be an ideal project to ...

How can I most effectively share code between C and C# (both Mono and Silverlight)

Our desktop application consists of a Mono/.NET 3.5 back end that communicates via USB with a variety of devices and a Silverlight front end that communicates with the back end via sockets. The firmware for the devices is developed in-house with C. To accelerate our development process and reduce bugs, we would like to share code betwe...