mono

How To Create An ASP.NET Designer Host

I have been asked to build an application where I can drag and drop few WebControls onto the WebPage designer surface. So far I have read some articles on .NET Framework Design-Time architecture, like, MSDN Article: Hosting WinForms Designers, Developer Function Article etc. But I can't a find a way to host WebForms designer. The only ...

Mono Ignores Graphics.InterpolationMode?

I have a program that draws some vector graphics using System.Drawing and the Graphics class. The anti-aliasing works, kindof okay, but for my need I neede oversampling, so I create the starting image to be n times larger and then scale back the final image by n. On Window and .NET the resulting image looks great! However, on Mono 2.4.2....

Monodevelop 2.2 on OSX - Debugging disabled

According to the feature matrix of Monodevelop 2.2, debugging should be available on OSX if one installs Mono 2.6.3. I've done this on two of my Macs, but can't seem to get the Debug menuitem enabled - it stays disabled. The project type I'm trying to debug is a Moonlight project, and according to the preferences in Monodevelop, the Moon...

C#/Mono Run Server in Background

Hello, I created a Server that listens for HTTP connections all the time. It's a default Console Application and runs on a Linux Machine using Mono (2.4). The Problem is that i want this Server to move itself to the background (deamonize itself). I couldn't find a Solution on Google and mono Server.exe & is not really what i'm looking f...

Qt as a true multi-platform dev-env

Inspired by the maturity problems I am facing porting on Mono Mac & Linux. I am investigating the use of Qt as an alternative. I am curious to hear about your favorite Qt experiences, tips or lesser known but useful features you know of. Please, include only one experience per answer. ...

Overriding LINQ extension methods

Is there a way to override extension methods (provide a better implementation), without explicitly having to cast to them? I'm implementing a data type that is able to handle certain operations more efficiently than the default extension methods, but I'd like to keep the generality of IEnumerable. That way any IEnumerable can be passed, ...

Confusion about Mono?

Ok, so I was perusing the mono site and noticed there are Novell tools I can purchase for Visual Studio that will let me choose to compile in Mono? My confusion is, if I am using a tool set such as MVC 2 and other Frameworks, and I use those tools to compile to mono, how exactly does that play into things? I mean don't those tool sets ...

How do I deploy a Mono Winforms Application to Suse Linux 11.0 Server Enterprise?

Is there a way to make a simple installer that includes the necessary runtimes and dependency packages, and creates an icon in the OpenSuse menu, so the application will "just work?" The actual application is just an executable (.EXE) and a handful of support files (mostly XML and CSV). I already have the application successfully bui...

Mono - Could not find a 'Sub Main' in ''

I started a new solution (with multiple projects) and am trying to get it to build. Initially I was getting an internal compiler error and thought maybe it had to do with MySql, so I removed all references to MySql. Now I am getting the error "Could not find a 'Sub Main' in ''". I have made sure that all of my projects have a Main sub...

How to use Linq in Mono?

I can't make System.Linq (aka. Linq-to-objects) work. I am running MonoDevelop 2.2.1 in Ubuntu 10 Lucid Lynx with Mono 2.4.4. They advertise in their site that they implemented Linq, but I can't even find Enumerable.Range or .ToArray(). What's wrong? ...

How to take a screenshot with Mono C#?

I'm trying to use use code get a screenshot in Mono C# but I'm getting a System.NotImplementedException when I call CopyFromScreen. My code works with .NET, so is there an alternate way of getting a screenshot using Mono? Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Graphics graphic...

Unmanaged Process in Mono

I want to create a Mono application to start and stop several processes. I only need to be able to start and stop the processes from the Mono application, I do not need any advanced features of managed processes. Users will be able to customize the available processes from a "preferences" menu. The problem is, that I also need to be abl...

How to interpret mono profiler results?

I created a console application in C# and running it on windows/.NET is 5x faster than on linux/mono or windows/mono. The app encodes some binary files into text format(JSON). I profiled the app on linux/mono using: mono --profile=default:stat myconsoleapp.exe Here is the first part of the result: prof counts: total/unmanaged: 32274...

How should I access Active Directory from a C# application running on mono in Linux?

My code will run in Windows (non-mono) and in Linux (mono). Currently, I am using System.DirectoryServices, which works great in Windows. But in Linux: System.NullReferenceException: Object reference not set to an instance of an object at System.DirectoryServices.DirectorySearcher.InitBlock () [0x00000] at System.DirectoryService...

How to using Mono for windows to Access WMI to get hardware Id?

Hi, folks Recently,I need run my winforms App on mono for windows platform,But i am using WMI to get MAC address and CPU ID in my original code,switch to Mono for Windows,it does not working. I found that "System.Management.dll" APIs is not implemented in Mono. How can i do?How to get CPU ID,MAC Address, Hard Disk Serial Number,and Mot...

.NET on Windows to Mono on Ubuntu

I am looking at a possibility to change my ASP.NET 2.0 application to the Mono framework. I have used the Mono Migration Analyzer tool and it does detect some P/Invoke and interop dependencies. For example: 1) We use Excel interops and on Linux we are looking to use StarOffice/OpenOffice instead. Is there an easy way of substituting E...

Appdomain recycle settings on mod_mono & Apache

How does one control the application recycle settings for an ASP.NET application runnin on mod_mono & Apache ? On IIS6 & 7 there was an option to specify either a time period, a number of requests, etc. when the AppDomain would be recycled and the application would basically do an Application_End() / Application_Start(). I am seeing th...

Mono ASP.NET COM Reference

Is there any way to reference a tlb export on Mono? I am really stuck with .NET on one of my only remaining projects on MS platforms and would like to move away from it. The only problem is that the web site is dependent on a COM library that is simply a socket wrapper enforcing a messaging protocol. I could reverse the code (I actual...

How do I determine what assembly a namespace is in?

The MSDN documentation doesn't generally specify the assembly a namespace is in, so there's no easy way to add the necessary assembly reference. NOTE: I am using MonoDevelop, so right-click, resolve is not an option. ...

Determine what version of Mono is running on linux?

Is there a command line I can run to determine what version of Mono I am running on Linux? I am using Ubuntu and I it is command line only (no X Windows installed). ...