473,320 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 4533
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

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

Similar topics

1
by: jason | last post by:
I have various small html websites on my windows server 2003 pc, these function quite happily from directories under D:\websites via ports 81, 8081, 8091, 8082 and of course there is the dafault...
2
by: Kalem | last post by:
Hi all. I've created a web service that runs fine on my development PC running W2K. The service is consumed by an ASPX page. (written using vb.net). I can deploy the webservice without any issues...
1
by: Reshma Prabhu | last post by:
Hello, I am using Windows Server 2003 Enterprise Edition for deploying ASP.NET application. I also have a SharePoint Server running on that machine. When I deploy the web site and try to access...
2
by: EricJ | last post by:
Hi all, I'm having problems deploying my asp.NET site to a windows server 2003. Deploying on a 2000 server or an xp pro never gave me any problems but now im stuck. I used a web setup to...
1
by: Simon Verona | last post by:
Hope somebody can help. I have a web service written in vb.net which works fine localling on my Windows XP Pro development machine without a problem. I have deployed in onto a Windows Server...
0
by: tf_group | last post by:
hi i've developed a asp.net web application using vs2003 and 1.1 framework. The site is using forms based authenication. The site is working correctly on my win xp pro development machine....
1
by: geetharani | last post by:
Hi Everybody, I created a VB.NET website application on Windows Xp using Visual Studio 2005. In this application I am using two dll's. one which is developed using VS2005 Windows application...
0
by: Jason Hamilton | last post by:
Hey all, I have written a Windows Forms application in VB.NET that creates a WCF Server. This server uses the Microsoft.Office.Interop.Access library to get a list of all of the MS Access...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.