简体   繁体   English

IIS 5.1无法解析虚拟目录

[英]IIS 5.1 not resolving Virtual Directory

I set up a Virtual Directory called 'Site'. 我设置了一个名为“站点”的虚拟目录。 I browse to http://localhost/Site/default.aspx , and it loads. 我浏览到http://localhost/Site/default.aspx并加载。 However, when I click on anything on the page, say Page1.aspx, it goes to http://localhost/Page1.aspx instead of the expected http://localhost/Site/Page1.aspx . 但是,当我单击页面上的任何内容(例如Page1.aspx)时,它将转到http://localhost/Page1.aspx而不是预期的http://localhost/Site/Page1.aspx

In the source file, the relative paths are coded as '/Page1.aspx' , for example, and it has worked in the past. 例如,在源文件中,相对路径被编码为'/Page1.aspx' ,并且它过去已经起作用。

I'm using Win XP Pro SP3 and IIS 5.1. 我正在使用Win XP Pro SP3和IIS 5.1。 Any ideas on what might be causing this behavior? 关于什么可能导致此行为的任何想法?

The correct home page URL in this case should be: 在这种情况下,正确的主页URL应为:

http://localhost/default.aspx http://localhost/default.aspx

What happens when you try that? 尝试该怎么办?

尝试将虚拟目录转换为应用程序。

我发现最好的解决方法是使用此小型IIS实用程序IISAdmin.NET(可从http://iisadmin.codeplex.com找到)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM