468,291 Members | 1,436 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,291 developers. It's quick & easy.

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

112 100+
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
Aug 4 '10 #1
16 4239
Frinavale
9,735 Expert Mod 8TB
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\wwwroot\
  • 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\wwwroot\ folder earlier
  • Move the files generated in the publishing step into the folder
  • Try accessing the website at http:\localhost\virtualDirectoryName\

-Frinny
Aug 4 '10 #2
user1980
112 100+
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
Aug 4 '10 #3
Frinavale
9,735 Expert Mod 8TB
You have to allow access on port 80 (you have to modify the server's firewall to allow this).

-Frinny
Aug 4 '10 #4
user1980
112 100+
I have the access to port 80, I assume because there are 3 asp(not .net) websites running from the same server successfully.
Aug 4 '10 #5
Frinavale
9,735 Expert Mod 8TB
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)
Aug 4 '10 #6
user1980
112 100+
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.
Aug 4 '10 #7
Frinavale
9,735 Expert Mod 8TB
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\Microsoft.NET\Framework\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
Aug 4 '10 #8
Frinavale
9,735 Expert Mod 8TB
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
Aug 4 '10 #9
Frinavale
9,735 Expert Mod 8TB
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
Aug 4 '10 #10
user1980
112 100+
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\mywebsite 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
Aug 4 '10 #11
Frinavale
9,735 Expert Mod 8TB
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 "application" (I think there's an option in IIS6 when you right click on the virtual directory to "convert to application")

-Frinny
Aug 4 '10 #12
user1980
112 100+
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
Aug 4 '10 #13
Frinavale
9,735 Expert Mod 8TB
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.
Aug 4 '10 #14
user1980
112 100+
thank you all your time.
Aug 4 '10 #15
Frinavale
9,735 Expert Mod 8TB
One thing I'm wondering is...can you set "bindings" in IIS6?

I don't have access to IIS6 to check it out...
But in there you can specify which ports and domain names that the applications are bound to. This available in IIS7 (Windows Sever 2008)

-Frinny
Aug 4 '10 #16
user1980
112 100+
I will look into it..thank you
Aug 4 '10 #17

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by EricJ | last post: by
reply views Thread by tf_group | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.