none
Run Dotnet web site in Both OS Linux As well as Windows(xp,vista) RRS feed

  • Question

  •  Hello,


            what is the procedure to make a web site in dotnet 2005?which can run in both OS windows as well as Linux?
    how to make a portable web site? so sir what is my first step? if im creating website in visual studio2005.then how to i publish and run on Linux?what about web server and IIS? reply me as soon as possible... Thanks.

    Anks
    Email -id:-ankit_2705@yahoo.co.in,
                    ankit2705@hotmail.com.
    Tuesday, August 5, 2008 11:20 AM

All replies

  • In general an ASP.NET (DotNet) web site is proprietary to MS, so you have to run ASP.NET which means you have to run IIS 6 (or IIS 7).

    Having said that, there's a .net clone for Linux/Unix called Mono.  In theory you can run an ASP.NET web page on Linux, but I'm not certain just how totally portable the site would end up being. Here's a reference to the mono faq: http://www.mono-project.com/FAQ:_ASP.NET. For a guide to porting, see http://tinyurl.com/6dj2ff/

    Thomas Lee
    Wednesday, August 6, 2008 1:53 PM
  • Sir,

        Last time i asked u a Question that how to run dotnet website in linux.so u suggest me go 4 MONO Framework.so i wanna install mono on linux.so give me that site name in which i can download source of that.and after install exe what is the step of run that website? reply me as soon as possible.
    Thanks

    email-id-ankit_2705@yahoo.co.in
    Wednesday, August 20, 2008 8:13 AM
  • Hi Anks Shah,

    Although your question is valid, I suggest that you have a look at Mono website properly before asking about how to install and where.

    Direct download link:
    http://www.go-mono.com/mono-downloads/download.html

    And for EVERY OS you can imagine, it actually tells you how to install it too.
    The way it works on Linux or any other Unix os is that you install the application onto the web server, which in most cases is Apache.

    For instance, if you are running Red Hat, the mono website tells you the following:

    "The prefered method for installing Mono on RedHat is to use yum. Once yum is installed, putting the mono.repo file in /etc/yum.repos.d will allow you to install mono and related packages."

    Really what it boils down to is, what exactly is the reason for running a Linux based server anyway? And if you are running dedicated Linux on you dev computer, and want to program using dotNet, why not use VMware with a windows installation? You'd be able to do much better tests of your website?

    Kind regards Martin

    PS. exe is, as far as I'm aware, a windows extention for executable files, where linux dont use those kinds of extensions
    Tuesday, September 2, 2008 10:32 PM