Question
Need help with .asp Virtual Includes
Hi,
I am using;
Dreamweaver 8
Win XP Pro
IIS6
Virtual Directory Information in IIS:
Local Path: C:\Inetpub\wwwroot\hseih
Application Name: hseih
Execute Permissions: Scripts Only
Configurations>Options>Enable Parent Paths: Checked
Read, Write, Browsing, Script Secure access, log visits, index this source: All Checked
Dreamweaver Site Setup Information:
Local Root: C:\Inetpub\wwwroot\hseih\
Links Relative to: Site Root
Server Model: ASP/VBScript
Access: Local/Nework
Testing Server Folder: C:\Inetpub\wwwroot\hseih\
URL Prefix: http://localhost/hseih/
Heres the code Im using in my index.asp file, where the footer.asp file is in the same directory.
<!--#include virtual="/header.asp"--> or
<!--#include virtual="header.asp"-->
very simple, I believe I have everything setup correctly, and it should work. But I receive:
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'header.asp' was not found.
/hseih/index.asp, line 10
However, it DOES work whenI add the root directory name into the include path as follows:
<!--#include virtual="/hseih/header.asp"-->
its like there's a setup issue somewhere, where IIS is misinterpreting the root of my site. When Im specifying to use the Site Root, and also the use of the "/" in the include path - doesnt that specify the root directory?
Any insight would be greatly appreciate.
Thanks!
I am using;
Dreamweaver 8
Win XP Pro
IIS6
Virtual Directory Information in IIS:
Local Path: C:\Inetpub\wwwroot\hseih
Application Name: hseih
Execute Permissions: Scripts Only
Configurations>Options>Enable Parent Paths: Checked
Read, Write, Browsing, Script Secure access, log visits, index this source: All Checked
Dreamweaver Site Setup Information:
Local Root: C:\Inetpub\wwwroot\hseih\
Links Relative to: Site Root
Server Model: ASP/VBScript
Access: Local/Nework
Testing Server Folder: C:\Inetpub\wwwroot\hseih\
URL Prefix: http://localhost/hseih/
Heres the code Im using in my index.asp file, where the footer.asp file is in the same directory.
<!--#include virtual="/header.asp"--> or
<!--#include virtual="header.asp"-->
very simple, I believe I have everything setup correctly, and it should work. But I receive:
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'header.asp' was not found.
/hseih/index.asp, line 10
However, it DOES work whenI add the root directory name into the include path as follows:
<!--#include virtual="/hseih/header.asp"-->
its like there's a setup issue somewhere, where IIS is misinterpreting the root of my site. When Im specifying to use the Site Root, and also the use of the "/" in the include path - doesnt that specify the root directory?
Any insight would be greatly appreciate.
Thanks!
