发布asp.net应用程序到互联网

发布asp.net应用程序到互联网

问题描述:

我有我们的网络上本地运行一个Web应用程序。用户的方式访问它是将 MYSERVER:80 /网站/ Default.aspx的

i have a web app that runs locally on our network. the way users access it is by going to myserver:80/site/default.aspx

我重新配置的设置来显示该网站的互联网

i reconfigured the settings to display the website to the internet.

我现在访问它的方式是:

the way i am accessing it now is:

ipaddress/site/default.aspx

和得到以下错误:

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /site/default.aspx

所以好像它看到的网站,但该网站并不要授予访问权限?

so it seems as if it does see the site, but the site does not want to grant access?

我在做什么错了?

修改如果共识是,它并不实际看到的网页。然后再我想知道我做错了。

edit if the consensus is that it doesnt actually see the webpage. then again i would like to know what i am doing wrong

您需要编辑在IIS主机头绑定您的网站。

You need to edit the host header bindings in IIS for your website.

如果你真的在IIS 5.1(只随Windows XP专业版),然后执行以下操作:

If you are really on IIS 5.1 (which ONLY shipped with Windows XP Pro) then do the following:


  1. 打开你的IIS管理器(开始>运行> INETMGR)。

  2. 展开计算机名称。

  3. 展开网站。

  4. 右键点击该网站名称

  5. 去网站标签

  6. 单击高级按钮

  7. 在多重身份于本网站点击添加按钮

  8. 设置IP地址。离开主机标头值的空白

  9. 单击确定

在这一点上应该有2所列的身份。一个DNS名称映射到IP地址和另一只具有IP地址

At this point there should be 2 identities listed. One that maps the DNS name to the IP address and another that only has the IP address.

如果由于某种原因,它警告你关于重复绑定,转至其他网站和删除任何扳平的IP地址到一个空白主机头。然后再回到这个网站,并成立了空白配置。

IF for some reason it warns you about duplicate bindings, go to the other sites and remove any that tie the IP address to a blank host header. Then come back to this site and set up the blank configuration.