For Programmers: Free Programming Magazines  


Home > Archive > ASP > July 2004 > #include









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #include
Christopher Brandsdal

2004-07-26, 3:55 pm

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]

2004-07-26, 3:55 pm

(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" <brandsdal@binaer.no> wrote in message
news:uprD06zcEHA.1124@TK2MSFTNGP11.phx.gbl...
> 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
>
>



Christopher Brandsdal

2004-07-26, 3:55 pm

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.xoc@dnartreb.noraa> wrote in message
news:eDd0R#zcEHA.3728@TK2MSFTNGP09.phx.gbl...
> (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" <brandsdal@binaer.no> wrote in message
> news:uprD06zcEHA.1124@TK2MSFTNGP11.phx.gbl...
same[color=darkred]
so[color=darkred]
>
>



Aaron [SQL Server MVP]

2004-07-26, 3:55 pm

Are you sure IUSR_machinename has access to that folder?

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




"Christopher Brandsdal" <brandsdal@binaer.no> wrote in message
news:#3VcDK0cEHA.3616@TK2MSFTNGP10.phx.gbl...
> 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.xoc@dnartreb.noraa> wrote in message
> news:eDd0R#zcEHA.3728@TK2MSFTNGP09.phx.gbl...
same[color=darkred]
> same
> so
>
>



Christopher Brandsdal

2004-07-26, 3:55 pm

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.xoc@dnartreb.noraa> wrote in message
news:e1UwLM0cEHA.3896@TK2MSFTNGP10.phx.gbl...
> Are you sure IUSR_machinename has access to that folder?
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Christopher Brandsdal" <brandsdal@binaer.no> wrote in message
> news:#3VcDK0cEHA.3616@TK2MSFTNGP10.phx.gbl...
>

-------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --
> Tripple
> same
disk...[color=darkred]
file,[color=darkred]
>
>



Aaron [SQL Server MVP]

2004-07-26, 3:55 pm

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" <brandsdal@binaer.no> wrote in message
news:#guvya0cEHA.556@tk2msftngp13.phx.gbl...
> 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



Christopher Brandsdal

2004-07-26, 3:55 pm

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.xoc@dnartreb.noraa> wrote in message
news:ewPnrc0cEHA.3572@TK2MSFTNGP10.phx.gbl...
> 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" <brandsdal@binaer.no> wrote in message
> news:#guvya0cEHA.556@tk2msftngp13.phx.gbl...
>
>



dave

2004-07-26, 8:55 pm

Rename the folder name
binaer.no
as its contains "." might be creating problem..
and try aaron's suggessted syntax
cheers
dave
>-----Original Message-----
>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.xoc@dnartreb.noraa> wrote

in message
>news:ewPnrc0cEHA.3572@TK2MSFTNGP10.phx.gbl...
can only take your[color=darkred]
will be able to offer[color=darkred]
>you
message[color=darkred]
www.binaer.no/nova/test.asp[color=darkred]
www.fagernesweb.no/client/test.asp[color=darkred]
>
>
>.
>

Christopher Brandsdal

2004-07-27, 3:55 am

Thanks dave! I'll try ;)
"dave" <anonymous@discussions.microsoft.com> wrote in message
news:488501c47371$9fee4db0$a601280a@phx.gbl...[color=darkred]
> Rename the folder name
> binaer.no
> as its contains "." might be creating problem..
> and try aaron's suggessted syntax
> cheers
> dave
> to include for
> in message
> can only take your
> will be able to offer
> message
> www.binaer.no/nova/test.asp
> www.fagernesweb.no/client/test.asp


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com