mono

How cross-platform .Net framework really is?

What is normally to be done to run a WinForms application on a Mac or Linux machine? a. Just copy and run (assuming they have a Framework installed). b. Rebuild. c. Cosmetic source code modifications. d. Heavy source code modifications and forms redesign. Assuming that the application is developed as 100% managed C# 3 code by means V...

Mono ASP.NET Oracle Connection

Hello to everybody, if i want to connect to orcale i became the following error: libclntsh.so Description: HTTP 500. Error processing request. Stack Trace: System.DllNotFoundException: libclntsh.so at (wrapper managed-to-native) System.Data.OracleClient.Oci.OciCalls/OciNativeCalls.OCIEnvCreate (intptr&,System.Data.OracleClient.Oci.O...

Is it possible to modify ASP.NET to no longer require runat="server"?

I know why runat="server" is currently required (ASP.NET why runat="server"), but the consensus is that it should not be required if you incorporate a simple default into the design (I agree of course). Would it be possible to modify, extend, decompile and recreate, intercept or otherwise change the behavior of how ASP.NET parses ASPX a...

Do I need to purchase a license when I will be creating a website/webapp using mono?

I used asp.net in a project in an old company. The vs was licensed etc. Right now, I am planning to use mono since my new company is using linux based stuff and I heard that mono uses the .net framework etc. I just want to know if I need to purchase anything or is it ok to create a webapp using mono? ...

.NET vs Mono differences in Development

I'm looking into Mono and .NET C#, we'll be needing to run the code on Linux Servers in the future when the project is developed. At this point I've been looking at ASP.NET MVC and Mono I run an ubuntu distro and want to do development for a web application, some of the other developers use windows and run other .NET items with Visual St...

Is there a workaround for Linux mono's refusal to acknowledge that I have resized the columns of my VirtualMode ListView?

When I resize a column, it does not redraw the data with the updated alignment. I've tried Invalidating, Refreshing, and a few other things. Nothing has worked. Does anyone know a workaround? I have not tried this in mono for Windows. To see what I mean, drop this control on a form, and run it in mono for Linux: using System; using...

IPC: Communication between Qt4 and MONO processes (on linux)

I have to connect a Qt4 application to a mono Application. The current proof of concept uses network sockets (which is nice, I can debug using nc on the command line). But I am open to new suggestions. What are my alternatives? Edit: The original application stack is split into two parts: server + client. The client is supposed to sho...

Rendering a View without a Master Page

Heya, I'm fetching a page using ajax (jquery) and appending certain data to the Requests query string to let the server know it shouldn't render the entire Page, just the view in question to the output buffer. I'm having no luck though, I can detect when the page needs to be rendered partially, but everything I've tried so far (includin...

Architecture decision for client-server communication protocol

This question is pretty generic actually, but I'm really having trouble finding a good answer or example of how it should be done. We are writing a simple multi-user collaborative web browsing application and we are having some issues deciding what to use for a communication protocol. We are developing in C# under Mono, hoping to event...

Same IL code, different output - how is it possible?

I have a piece of code, which outputs different results, depending on the C# compiler and the runtime. The code in question is: using System; public class Program { public static void Main() { Console.WriteLine(string.Compare("alo\0alo\0", "alo\0alo\0\0", false, System.Globalization.CultureInfo.InvariantCulture)); } } ...

Does <httpRedirect> in web.config work in a mono setup? Or is it IIS7 specific?

We had some content restructure recently and I'd like to put in some redirect rules into web.config so bookmarks to the old pages can get routed to their new locations/pages. I tried using this approach: <location path="~/product/productA.aspx"> <system.webServer> <httpRedirect enabled="true" destination="~/product/category...

How can I extract System.Net.Mail from Mono and rename the namespaces?

Microsoft's implementation of System.Net.Mail does not provide a robust mailing solution. I would like to use Mono's implementation of System.Net.Mail instead, however that namespace is embedded in the System.dll shipped with Mono, and has exact same namespaces as the original .net framework. What I would like to do is instead extract ...

Graphics framework choice for Mono compatible application.

I have an application that has some controls that use GDI+, mostly simple stuff with low graphics rendering requirements although I do have a couple of animated GDI+ windows that are borederline usable because of poor GDI+ performance. Moving forward I would like to start using WPF (for performance and to learn WPF) but I also like to k...

Using the MySql ASP.NET membership provider with existing users

I have been tasked with migrating an existing mature ASP.NET 2.0 web site to NHibernate, Mono and MySQL or postgres. I am somewhat confused as how the membership provider salts the passwords. If I make the switch and use the MySQL membership provider (outlined in this question) or AspSqlProvider, will the existing users be able to logi...

Tutorials/Books on using Mono to develop RESTful webservices?

Hi, anyone out there got any pointers to good links/tutorials/books on developing webservices with Mono? In more detail, I am interested in using Mono from project start on a Linux host developing in C# using Visual Studio for development, ideally with remote debugging if that is realistic developing web-services in MONO accessible i...

Mono winforms app fullscreen in Ubuntu?

Just wondering if there's a known way of getting a Mono System.Windows.Forms application to go fullscreen on Ubuntu/Gnome. Mono is 2.4.2.3 Ubuntu is 9.10 Doing it on Windows requires a pinvoke, clearly not going to work here. This is what I get setting window border to none, window position to centre, and state to maximised: Update...

ASP.net MVC 2 and MonoDevelop 2.2

Is it possible to utilize MVC 2 from MonoDevelop 2.2 (using Mono 2.4)? If so - is it as simple as grabbing a reference to the new System.Web.Mvc or is there something else to consider? I realize that any templating support in MonoDevelop may not be 100% there since it was built to utilize MVC v1 (at least as of MonoDevelop 2.2). If any...

Bash script: bad interpreter

Question: I get this error message: export: bad interpreter: No such file or directory when I execute this bash script: #!/bin/bash MONO_PREFIX=/opt/mono-2.6 GNOME_PREFIX=/opt/gnome-2.6 export DYLD_LIBRARY_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_PATH export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH export C_INCLUDE_PATH=$MON...

MonoDevelop in Linux -- Terminal Commands

Hi everyone, I want to make a C# app in Mono as it's the only programming language I'm mostly comfortable with. Anyway, ATI Drivers on Linux do not have a Fan control feature and therefore the cards to tend to heat up. For me I prefer to have a cooler card. What I want to do is run a command such as: aticonfig --pplib-cmd 'set fanspe...

Should a protected property in a C# child class hide access to a public property on the parent?

I have the following code: public class Parent { public string MyField { get; set; } } public class Child : Parent { protected new int MyField { get; set; } } I try and access this with: static void Main(string[] args) { Child child = new Child(); child.MyField = "something"; } Visual studio 2008 compiles this with...