如何在Windows Server 2003&amp ;;上部署ASP.NET2.0网站IIS 6.0。 [英] how to deploy an ASP.NET2.0 website on Windows server 2003 & IIS 6.0.

查看:81
本文介绍了如何在Windows Server 2003&amp ;;上部署ASP.NET2.0网站IIS 6.0。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


有人可以告诉我如何在Windows Server 2003和Windows上部署ASP.NET2.0网站。 IIS 6.0。


我尝试按照这些步骤操作,但收到消息Internet Explorer无法显示网页。


1。在IIS中使用主机标题创建一个新网站。


2.浏览到asp.net网站所在的目录并将其设置为主目录。

3.停止网站并启动它。


我使用Visual Studio 2005来开发我的Asp.net网站。



有人可以告诉我为什么我的网站无法运行。我是否也必须创建一个虚拟目录?


谢谢

解决方案

使用Visual发布网站Studio。

这将创建运行您的网站所需的文件。您将把这些文件移动到您的Web服务器。


在Web服务器上
  • 按Windows键+E打开Windows资源管理器
  • 导航到C:\Inetpub \ www.root \
  • 在那里创建一个将保存您的网站文件的目录(不要在名称中放置空格或任何奇怪的字符)
  • 打开IIS
  • 展开计算机名称树
  • 展开网站树
  • 右键点击默认网站
  • 将鼠标悬停在新网站上然后选择虚拟目录
  • 按照向导中的步骤创建虚拟目录浏览到您之前在C:\ Inetpub \wwwroot \文件夹中创建的物理目录
  • 将发布步骤中生成的文件移动到文件夹中
  • 尝试访问网站http:\ localhost \virtualDirectoryName \


-Frinny


感谢您的回复。我成功部署了网站。我正在使用主机标题访问该网站。但是,当我尝试从本地计算机访问该网站时,我无法查看该页面。我收到消息,找不到服务器。我只能在服务器上查看网页,但不能在互联网上查看。如何从任何计算机访问该网页。谢谢


您必须允许在端口80上访问(您必须修改服务器的防火墙以允许此操作)。


- Frinny

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

解决方案

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


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


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

-Frinny


这篇关于如何在Windows Server 2003&amp ;;上部署ASP.NET2.0网站IIS 6.0。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆