Lee Lup Yuen

Mister Tech

By Lee Lup Yuen

Tips, tricks for the enterprise user


How to run .NET applications on Linux

Posted in Mister Tech by Lee Lup Yuen on Wednesday, June 24 2009 12:00 AM

In many enterprise environments we work with a mix of Windows and Linux servers. If you had to build a large, complex enterprise application that runs on Linux, you would typically use Java. Now there's an alternative that's maturing and gaining popularity--you can run .NET applications on Linux, using the open source Mono runtime.

Running .NET applications with Mono on Linux is surprisingly easy. You use Visual Studio 2008 on your Windows PC to build your .NET console application and compile it into an .exe file. Copy the .exe file (say ConsoleApplication1.exe) to the Linux server and run it with the command:

mono ConsoleApplication1.exe

And that's it--Mono will run your .NET binaries without requiring any conversion. Mono supports ASP.NET and WinForm applications too, but be prepared to spend a bit more effort to get them running on Mono.

Installing Mono on your Linux server is easy. If you have EPEL configured on your Linux server, you can run this command to install the Mono runtime:

yum install mono-core

Here's a helpful tip: Mono doesn't trust any root certificates by default, so if your application uses SSL it may fail. You can fix this problem with the command:

mozroots --import





Disclaimer:
Views and opinions expressed in this blog are the author's, and do not necessarily represent those of ZDNet Asia.

Tags: Mono, Linux Server, console, Microsoft ASP.NET, Microsoft Visual Studio 2008, Microsoft .NET, Java, Microsoft Visual Studio, Linux, server

Blog

Talkback 1 comments

How to run .NET applications on Linux
I read lot about the performance issues running .net binary files using Mono on Linux compared to on Windows. What is your opinion and have you done any performance test with some real data.

Thanks,
- DM
Posted by anonymous on Friday, October 30 2009 07:25 PM

Recent Posts

Most Popular

Archive

Latest in Blog Central

Blog thumbnail

Subscribe to BlogCentral

Click this link to view this blog as XML.
Add this feed to your online news reader

Add to google
Add to my msn
Add to yahoo
Add to bloglines

About the blogger

Lee Lup Yuen

Lee Lup Yuen



Lee Lup Yuen is passionate about mobile phones and PDAs, as he is constantly buying new gadgets and programming them in J2ME, .NET, Symbian and AppForge. He has developed commercial applications with mobile technologies like SMS, MMS, WAP, 3G video streaming and location-based services.

Tags

  1. 3g
  2. 64 - bit
  3. api
  4. apple iphone
  5. apple mac os
  6. apple macbook
  7. cell phone
  8. google inc.
  9. gps
  10. internet
  11. java
  12. microsoft windows
  13. microsoft windows 7
  14. microsoft windows vista
  15. mobile
  16. nokia corp.
  17. notebook
  18. phone
  19. sms
  20. web