asp.net,我设法发布我的网站,但不知道如何访问它
我发布了一个简单的 ASP.net 网站,引用了此链接: http://msdn.microsoft.com/en-us/library/1y1404zt%28v=vs.80%29.aspx
我成功发布我的网站按照指定的方式复制到 C:\testapp,并且我按照指定的方式共享了该文件夹。然后,此文档表明我应该能够神奇地通过 http://localhost/testapp/default.aspx 访问我的网站
似乎不起作用...这里缺少什么?
I published a simple ASP.net website referring to this link : http://msdn.microsoft.com/en-us/library/1y1404zt%28v=vs.80%29.aspx
I managed to publish my site to C:\testapp as specified, and I shared the folder as specified. Then, this documentation suggests that I should magically be able to access my site via http://localhost/testapp/default.aspx
Doesn't seem to work... What is missing here ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您仔细阅读演练,您会在发布网页后和打开网页之前注意到以下几点:
因此,为了查看网页,您必须安装 IIS 并将其配置为将本地路径视为虚拟目录。
If you read the walk-through carefully you will notice the following point just after publishing the webpage and before opening your webpage:
So, in order to see the webpage you must have IIS installed and configured to treat your local path as a virtual directory.
您需要在 IIS 中设置一个网站并将其指向此位置。然后浏览到网站网址。
You need to setup a website in IIS and point it to this location. Then browse to the site url.
最简单的方法是按如下方式发布:
除非您以不同方式配置 IIS,否则它应该将您的站点内容发布到以下文件夹。
,您应该能够使用 URL http://localhost/TestApp/default.aspx 访问它
然后 不,请检查 IIS(
控制面板 -> 管理工具 - Internet 信息服务
)您的站点应该列在树视图中如果没有,请添加一个
虚拟目录
尝试访问您的再次访问该网站,如果您仍然遇到问题,请尝试执行通过在
命令提示符
中键入iisreset
来重置 IISSimplest method would be to publish as follows:
It should publish your site contents to the below folder unless you configured IIS differently.
You should then be able to access it using the URL http://localhost/TestApp/default.aspx
If not, check IIS (
Control Panel -> Administrative Tools - Internet Information Services
) your site should be listed in the tree viewIf not, add a
Virtual Directory
try access your site again, if you're still having problems, attempt to do an IIS Reset by Typing
iisreset
intoCommand Prompt