how to deploy an ASP.NET2.0 website on Windows server 2003 & IIS 6.0.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • user1980
    New Member
    • Dec 2009
    • 112

    how to deploy an ASP.NET2.0 website on Windows server 2003 & IIS 6.0.

    hello


    can somebody tell me how to deploy an ASP.NET2.0 website on Windows server 2003 & IIS 6.0.

    I tried to follow these steps but I get the message "Internet Explorer cannot display the webpage".

    1. Create a new website in IIS with a host header.

    2. Browse to the directory where the asp.net website is and setting it as home directory.

    3. Stopping the website and starting it.

    I am using Visual studio 2005 to develop my Asp.net website.


    Can somebody please let me know why my site is not working. Do I have to create a virtual directory too?


    Thank you
    Last edited by Niheel; Aug 4 '10, 04:49 PM.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Publish the website using Visual Studio.
    This will create files needed in order to run your website. You will move these files to your web server.

    On the web server machine
    • Open Windows Explorer by pressing the Windows-Key + "E"
    • Navigate to C:\Inetpub\wwwr oot\
    • Create a directory in there that will hold your website files (do not put spaces or any weird characters in the name)
    • Open IIS
    • Expand the "computer-name" tree
    • Expand the "Web Sites" tree
    • Right click on the "Default Website"
    • Hover over "New" and then select "Virtual Directory"
    • Follow the steps in the wizard to create you Virtual directory browse to the physical directory you made in the C:\Inetpub\wwwr oot\ folder earlier
    • Move the files generated in the publishing step into the folder
    • Try accessing the website at http:\localhost \virtualDirecto ryName\


    -Frinny

    Comment

    • user1980
      New Member
      • Dec 2009
      • 112

      #3
      thank you for your reply. I did successfully deploy the website. I am using a host header to access the website. However when I try to access the website from my local machine I am unable to view the page. I get the message, Server not found. I can only view the webpage in the server but not on internet. How can I access the webpage from any computer. Thank you

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        You have to allow access on port 80 (you have to modify the server's firewall to allow this).

        -Frinny

        Comment

        • user1980
          New Member
          • Dec 2009
          • 112

          #5
          I have the access to port 80, I assume because there are 3 asp(not .net) websites running from the same server successfully.

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Disable the firewall for testing purposes to see if that makes a difference (be sure to refresh/clear cache of the browser you're using to test with)

            Comment

            • user1980
              New Member
              • Dec 2009
              • 112

              #7
              I have tried clearing the cache of the browser but no use. also when I try to click on the windows firewall, it says windows firewall can not run. So i think there is no firewall on that server.

              Comment

              • Frinavale
                Recognized Expert Expert
                • Oct 2006
                • 9749

                #8
                Um...do you have ASP.NET installed and "permitted" ?

                For some reason I thought you were using IIS5 ...just realized you were talking about a Windows 2003 server (IIS6).

                I hate this server because it's not very helpful in giving indications as to what is going wrong.

                First make sure ASP.NET 2.0 is installed:
                • Open command line
                • Type cd C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727
                  • This will bring you to the directory where your .NET Framework 2.0 is installed
                • Type: aspnet_regiis -i
                  • This will install ASP.NET 2.0
                • Open the IIS manager
                • Click on "Web Service Extensions" and make sure that ASP.NET v3.0.50727 is "Allowed". If it isn't, highlight it and click the "Allow" button.


                -Frinny

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  After you've done the above, expand "Web Sites", right click on your website, click "Properties ", select the "ASP.NET" tab... and make sure that it's using ASP.NET v2.0.5xxxx

                  -Frinny

                  Comment

                  • Frinavale
                    Recognized Expert Expert
                    • Oct 2006
                    • 9749

                    #10
                    Oh yeah, I just remembered by default I don't think the .NET 2.0 Framework is installed...so that means you may have to install the .NET 2.0 Framework before you even attempt any of my recommendations .

                    -Frinny

                    Comment

                    • user1980
                      New Member
                      • Dec 2009
                      • 112

                      #11
                      it is installed. I have checked that. also wanted to mention that I have crearted this website as a new website instead of creating in the default website and also I did not create any virtual directory for the website.
                      I just created a new website and then directed the home directory to c:\intenpub\myw ebsite where my website is residing. I have given a host header value to this website using which I am trying to access the website.



                      thank you

                      Comment

                      • Frinavale
                        Recognized Expert Expert
                        • Oct 2006
                        • 9749

                        #12
                        My expertise in web servers is limited.

                        I don't know how to do anything headers on Windows Sever 2003 (I have done it a couple of times with Sever 2008 though but it's a different environment completely)


                        Try doing the virtual directory thing...
                        Also try "converting " the virtual directory into an "applicatio n" (I think there's an option in IIS6 when you right click on the virtual directory to "convert to application")

                        -Frinny

                        Comment

                        • user1980
                          New Member
                          • Dec 2009
                          • 112

                          #13
                          if i do the virtual directory thing , i would not get the url i need because there are 2 more sites that are residing in that. anyways i could not see the option "covert to application" .

                          thank you for your help

                          Comment

                          • Frinavale
                            Recognized Expert Expert
                            • Oct 2006
                            • 9749

                            #14
                            I see your problem.
                            The other sites are classic asp ...and need to use those ISAPIs..

                            I'm so sorry I can't help you any further with this. I'll see if I can get some IIS experts to take a look at this thread. Hopefully they'll know how to get this to work.
                            Last edited by Frinavale; Aug 4 '10, 08:39 PM.

                            Comment

                            • user1980
                              New Member
                              • Dec 2009
                              • 112

                              #15
                              thank you all your time.

                              Comment

                              Working...