Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

#include

0 views
Skip to first unread message

Christopher Brandsdal

unread,
Jul 26, 2004, 2:30:58 PM7/26/04
to
If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same
server?

There is going to be several applications that includes the same file, so
the trix ../../../ will not do it for me...


Christopher Brandsdal


Aaron [SQL Server MVP]

unread,
Jul 26, 2004, 2:36:46 PM7/26/04
to
(a) use file instead of virtual
(b) this is not unix, use backslashes for local file references

<!--#include file="D:\binear.no\nova\test.asp"-->

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <bran...@binaer.no> wrote in message
news:uprD06zc...@TK2MSFTNGP11.phx.gbl...

Christopher Brandsdal

unread,
Jul 26, 2004, 2:58:14 PM7/26/04
to
Thanks, but it still does not work....

The Include tag looks like this:
<!--#include file="D:\binaer.no\Nova\test.asp"-->

but I still get this error:
---------------------------------------------------------------------------
-----
Active Server Pages error 'ASP 0126'

Include file not found

/client/test.asp, line 11

The include file 'D:\binaer.no\Nova\test.asp' was not found.

----------------------------------------------------------------------------
-----

I have used my explorer to find the path, ant it is of caurse right. Tripple
checked ;) So theres got to be something else strange that I can not
understand..

Thank you so much for helping me Aaron! It is a GREAT help for me!

"Aaron [SQL Server MVP]" <ten...@dnartreb.noraa> wrote in message
news:eDd0R#zcEHA...@TK2MSFTNGP09.phx.gbl...

Aaron [SQL Server MVP]

unread,
Jul 26, 2004, 3:01:39 PM7/26/04
to
Are you sure IUSR_machinename has access to that folder?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Christopher Brandsdal" <bran...@binaer.no> wrote in message

news:#3VcDK0c...@TK2MSFTNGP10.phx.gbl...

Christopher Brandsdal

unread,
Jul 26, 2004, 3:28:11 PM7/26/04
to
Yes, because it is a domain account..
D:\binaer.no\Nova\test.asp = www.binaer.no/nova/test.asp

The code is running from
D:\fagernesweb.no\client\test.asp = www.fagernesweb.no/client/test.asp


"Aaron [SQL Server MVP]" <ten...@dnartreb.noraa> wrote in message

news:e1UwLM0c...@TK2MSFTNGP10.phx.gbl...

Aaron [SQL Server MVP]

unread,
Jul 26, 2004, 3:31:10 PM7/26/04
to
Well, I don't know, since I can't see your machines, I can only take your
word that IUSR has access. I don't know if anyone will be able to offer you
any more than that.

--
http://www.aspfaq.com/
(Reverse address to reply.)

"Christopher Brandsdal" <bran...@binaer.no> wrote in message

news:#guvya0c...@tk2msftngp13.phx.gbl...

Christopher Brandsdal

unread,
Jul 26, 2004, 3:39:06 PM7/26/04
to
hehe ok thanks!

But my question was in the first place: is it possible to include for
instance D:\binaer.no\Nova\test.asp
And your answer is 'yes':)
So I think I'll just keep trying till I get it to work ;)
I'll let you know if I find the solution!


"Aaron [SQL Server MVP]" <ten...@dnartreb.noraa> wrote in message

news:ewPnrc0c...@TK2MSFTNGP10.phx.gbl...

dave

unread,
Jul 26, 2004, 8:35:32 PM7/26/04
to
Rename the folder name
binaer.no
as its contains "." might be creating problem..
and try aaron's suggessted syntax
cheers
dave
>.
>

Christopher Brandsdal

unread,
Jul 27, 2004, 3:32:26 AM7/27/04
to
Thanks dave! I'll try ;)
"dave" <anon...@discussions.microsoft.com> wrote in message
news:488501c47371$9fee4db0$a601...@phx.gbl...
0 new messages