Need help with .asp Virtual Includes
hi,
i using;
dreamweaver 8
win xp pro
iis6
virtual directory information in iis:
local path: c:\inetpub\wwwroot\hseih
application name: hseih
execute permissions: scripts
configurations>options>enable parent paths: checked
read, write, browsing, script secure access, log visits, index source: 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 code im using in index.asp file, footer.asp file in same directory.
<!--#include virtual="/header.asp"--> or
<!--#include virtual="header.asp"-->
very simple, believe have setup correctly, , should work. receive:
error type:
active server pages, asp 0126 (0x80004005)
the include file 'header.asp' not found.
/hseih/index.asp, line 10
however, work wheni add root directory name include path follows:
<!--#include virtual="/hseih/header.asp"-->
its there's setup issue somewhere, iis misinterpreting root of site. when im specifying use site root, , use of "/" in include path - doesnt specify root directory?
any insight appreciate.
thanks!
i using;
dreamweaver 8
win xp pro
iis6
virtual directory information in iis:
local path: c:\inetpub\wwwroot\hseih
application name: hseih
execute permissions: scripts
configurations>options>enable parent paths: checked
read, write, browsing, script secure access, log visits, index source: 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 code im using in index.asp file, footer.asp file in same directory.
<!--#include virtual="/header.asp"--> or
<!--#include virtual="header.asp"-->
very simple, believe have setup correctly, , should work. receive:
error type:
active server pages, asp 0126 (0x80004005)
the include file 'header.asp' not found.
/hseih/index.asp, line 10
however, work wheni add root directory name include path follows:
<!--#include virtual="/hseih/header.asp"-->
its there's setup issue somewhere, iis misinterpreting root of site. when im specifying use site root, , use of "/" in include path - doesnt specify root directory?
any insight appreciate.
thanks!
if you're using relative path, use:
<!--#include file="../relative/path/to/file.asp"-->
if you're using absolute path root of site, use:
<!--#include virtual="/absolute/path/from/root/to/file.asp"-->
make sense?
best regards,
chris
"fmeenz" <webforumsuser@macromedia.com> wrote in message
news:f1t6vj$ocg$1@forums.macromedia.com...
> hi,
>
> using;
>
> dreamweaver 8
> win xp pro
> iis6
>
> virtual directory information in iis:
> local path: c:\inetpub\wwwroot\hseih
> application name: hseih
> execute permissions: scripts
> configurations>options>enable parent paths: checked
> read, write, browsing, script secure access, log visits, index
> source:
> 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 code im using in index.asp file, footer.asp file
> in
> same directory.
>
> <!--#include virtual="/header.asp"--> or
> <!--#include virtual="header.asp"-->
>
> simple, believe have setup correctly, , should
> work.
> receive:
>
> error type:
> active server pages, asp 0126 (0x80004005)
> include file 'header.asp' not found.
> /hseih/index.asp, line 10
>
> however, work wheni add root directory name include
> path
> follows:
>
> <!--#include virtual="/hseih/header.asp"-->
>
> there's setup issue somewhere, iis misinterpreting
> root of site. when im specifying use site root, ,
> use of
> "/" in include path - doesnt specify root directory?
>
> insight appreciate.
>
> thanks!
>
<!--#include file="../relative/path/to/file.asp"-->
if you're using absolute path root of site, use:
<!--#include virtual="/absolute/path/from/root/to/file.asp"-->
make sense?
best regards,
chris
"fmeenz" <webforumsuser@macromedia.com> wrote in message
news:f1t6vj$ocg$1@forums.macromedia.com...
> hi,
>
> using;
>
> dreamweaver 8
> win xp pro
> iis6
>
> virtual directory information in iis:
> local path: c:\inetpub\wwwroot\hseih
> application name: hseih
> execute permissions: scripts
> configurations>options>enable parent paths: checked
> read, write, browsing, script secure access, log visits, index
> source:
> 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 code im using in index.asp file, footer.asp file
> in
> same directory.
>
> <!--#include virtual="/header.asp"--> or
> <!--#include virtual="header.asp"-->
>
> simple, believe have setup correctly, , should
> work.
> receive:
>
> error type:
> active server pages, asp 0126 (0x80004005)
> include file 'header.asp' not found.
> /hseih/index.asp, line 10
>
> however, work wheni add root directory name include
> path
> follows:
>
> <!--#include virtual="/hseih/header.asp"-->
>
> there's setup issue somewhere, iis misinterpreting
> root of site. when im specifying use site root, ,
> use of
> "/" in include path - doesnt specify root directory?
>
> insight appreciate.
>
> thanks!
>
More discussions in Develop server-side applications in Dreamweaver
adobe
Comments
Post a Comment