【发布时间】:2014-09-12 23:56:15
【问题描述】:
在包含 iis 7.5 的 Windows 7 中设置我的经典 asp 网站时,我遇到了找不到文件的问题。我猜它在具有 iis 5 的 windows xp 中工作得非常好。
当我尝试从“test\manager\team.asp”访问文件 header.asp(位于“test\include_files\header.asp”)时,它会尝试在路径“test\manager\include_files\header.asp”,而它应该查看“test\include_files\header.asp”。
在文件 team.asp 中,我是这样调用文件的:
<!-- #include file="../include_files/header.asp" -->
我了解在 IIS 6 及更高版本中默认情况下未启用父路径,我已通过 IIS 管理器启用它,但仍然没有运气。我搜索了互联网和这个站点,似乎唯一需要做的就是启用我已经完成的父路径。我还尝试输入完整路径,如:“test\include_files\header.asp”,但没有运气!
请告知还需要做什么才能使其正常工作。 提前感谢您的帮助和时间!
【问题讨论】:
-
尝试使用 virtual 关键字。所以 2. 如果有帮助,请添加更多信息,这个“测试”文件夹是在“C:\inetpub\wwwroot\”路径中。
-
以斜杠开头,像这样
标签: iis asp-classic