Kevin Steffer Outloud – web, business and opinions

19Dec/050

Run ASP.NET application on your Linux server

What??? - That was my first thought, - it isn't 1. of april :D Well no matter what it's awesome if this would be true and not to loose your attention now - IT IS TRUE !

The developers at dev.mainsoft.com actually made a very nice and easy deployment setup by using the Apache Tomcat application Server to host ASP.NET applications. It has it's limitations but it's definately a suitable solution setup for small applications or in terms of J2EE and .NET interop solutions. The C# guys and know build their modules, web services, API or whatever and the server admin guys deploy it on a Linux server - I can see the sun starts to shine in your eyes ....

I haven't been able to test this much but I quickly downloaded the Grasshopper packet for Windows and played around - it installed Visual Studio Extensions for "Visual MainWin C# for J2EE" and "Visual MainWin VB for J2EE" so you can build projects that can be deployed in the Tomcat application server. I build a webform and a web service into my project on the webform coded a postback event on a button that invoked my web method and printet some more on the web form and WOU WOOOOO - it worked fine.
But sure I was still in Windows, I decided to install a Tomcat on my Linux machine and then deploy the war-file there.

Let it be said, it doesn't work natively to deploy a "MainWin C# for J2EE" project on Tomcat, Tomcat needs some libraries to work with and a VmwDeployer WebApp deployed and running in Tomcat before you deploy any "MainWin C# for J2EE" projects.

I copied the Mainsoft jar libraries from my windows installation from "C:\program files\Mainsoft\Visual MainWin for J2EE\jakarta-tomcat\common\lib and pastet them into the equivalent directory of my Tomcat installation on my Linux machine.

I deployed the VmwDeployer webapp and then I deployed my own "MainWin C# for J2EE" project. An the Oscar goes to .........
It worked fine even the Web Service responded when invoked from the webform.

I must admit, -I'm impressed!

Nice work Mainsoft - I'll stay close to your website for a while :)

For more information see:
http://dev.mainsoft.com

Filed under: .NET, ASP.NET, Linux No Comments