Open a Web Site on Localhost

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    Open a Web Site on Localhost

    I have been given the release files from an ASP.NET website.
    They are currently on my local machine where I would like to view the web-site.

    How do I do this?
    All my recent development has been done in PHP so my .NET is rusty.
    II can do very little in Visual Studio because there is no Solution or Project files.

    I am using Windows XP
    I have Apache running as a local server which I do not want to remove.

    Thanks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    The first thing you need to do is install IIS.
    ASP.NET applications require the .NET framework in order to run. This means that you can't use Apache, you need to use IIS in order to host this website.

    -Frinny

    Comment

    • code green
      Recognized Expert Top Contributor
      • Mar 2007
      • 1726

      #3
      Thanks Frinny,
      I somehow knew that was coming.

      I will probably run this on another Windows box.
      But I think Apache can be made to run .NET with a driver and editing the configuration file, I may investigate this idea a little also

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        I haven't worked very much with Apache (just used it a few times for some JSP, Java Webservice, and PHP applications years ago). I have never tried to run my .NET websites on an Apache server.

        Best of luck!

        -Frinny

        Comment

        • code green
          Recognized Expert Top Contributor
          • Mar 2007
          • 1726

          #5
          For information.
          I configured the Apache to use port 8080 instead of port 80.
          I did this by editing the httpd.conf file "listen" setting.

          Then Installed IIS services via Control Panel >> Add/Remove Programs.

          I can now run Apache on localhost:8080/ and .NET on localhost/

          This is not recommended for live servers because it causes problems with users. There is some port redirection software available.

          Comment

          Working...