将 asp.net 应用程序发布到 Internet [英] publishing asp.net application to the internet

查看:31
本文介绍了将 asp.net 应用程序发布到 Internet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在我们的网络上本地运行的网络应用程序.用户访问它的方式是转到 myserver:80/site/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 Pro 提供),请执行以下操作:

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.

这篇关于将 asp.net 应用程序发布到 Internet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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