include virtual problem

Discussion in 'ASP General' started by andy, Jul 1, 2003.

  1. andy

    andy Guest

    i am using dreamweaver to create an asp page. I have the following code
    incorporated on the page. :-

    <!--#include virtual="/includes/meta.asp" -->

    But when i preview it asp produces the following error.

    Error Type:
    Active Server Pages, ASP 0126 (0x80004005)
    The include file '/includes/meta.asp' was not found.
    /poll/TMP8pp69hcijs.asp, line 5

    If i change it to 'include fle' it seems to work but then i have to change
    the entire site. Any ideas? Thanks

    AL
    andy, Jul 1, 2003
    #1
    1. Advertising

  2. andy

    Ray at Guest

    When you do a file include, you can't start with the /. That indicuates
    virtuality from the root of the site.

    Ray at work

    "andy" <> wrote in message
    news:...
    > i am using dreamweaver to create an asp page. I have the following code
    > incorporated on the page. :-
    >
    > <!--#include virtual="/includes/meta.asp" -->
    >
    > But when i preview it asp produces the following error.
    >
    > Error Type:
    > Active Server Pages, ASP 0126 (0x80004005)
    > The include file '/includes/meta.asp' was not found.
    > /poll/TMP8pp69hcijs.asp, line 5
    >
    > If i change it to 'include fle' it seems to work but then i have to change
    > the entire site. Any ideas? Thanks
    >
    > AL
    >
    >
    Ray at, Jul 1, 2003
    #2
    1. Advertising

  3. For some reason dreamweaver is trying to create a Temp file for you.
    Are you publishing the contents of your site to a location other then
    your local site?

    Also, don't use the dreamweaver view thingy. When you want to view work
    you have done actually goto the place where you published it using IIS.
    For example...

    http://localhost/index.asp

    hth,
    Andrew

    * * * Sent via DevBuilder http://www.devbuilder.org * * *
    Developer Resources for High End Developers.
    Andrew Durstewitz, Jul 1, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danny Anderson
    Replies:
    5
    Views:
    487
    Victor Bazarov
    Aug 15, 2003
  2. Rolf Magnus
    Replies:
    2
    Views:
    591
    Karl Heinz Buchegger
    Nov 28, 2003
  3. web4all
    Replies:
    0
    Views:
    3,120
    web4all
    May 11, 2006
  4. Andreas Bogenberger
    Replies:
    3
    Views:
    889
    Andreas Bogenberger
    Feb 22, 2008
  5. rockdale

    include virtual in virtual directory?

    rockdale, Sep 3, 2008, in forum: ASP General
    Replies:
    3
    Views:
    431
    rockdale
    Sep 4, 2008
Loading...

Share This Page