By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,110 Members | 1,542 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,110 IT Pros & Developers. It's quick & easy.

#include

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
(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" <br*******@binaer.no> wrote in message
news:up**************@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

Jul 19 '05 #2

P: n/a
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]" <te*****@dnartreb.noraa> wrote in message
news:eD**************@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" <br*******@binaer.no> wrote in message
news:up**************@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


Jul 19 '05 #3

P: n/a
Are you sure IUSR_machinename has access to that folder?

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


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:#3**************@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]" <te*****@dnartreb.noraa> wrote in message
news:eD**************@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" <br*******@binaer.no> wrote in message
news:up**************@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



Jul 19 '05 #4

P: n/a
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]" <te*****@dnartreb.noraa> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
Are you sure IUSR_machinename has access to that folder?

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


"Christopher Brandsdal" <br*******@binaer.no> wrote in message
news:#3**************@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]" <te*****@dnartreb.noraa> wrote in message
news:eD**************@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" <br*******@binaer.no> wrote in message
news:up**************@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
>
>



Jul 19 '05 #5

P: n/a
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" <br*******@binaer.no> wrote in message
news:#g*************@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

Jul 19 '05 #6

P: n/a
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]" <te*****@dnartreb.noraa> wrote in message
news:ew**************@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" <br*******@binaer.no> wrote in message
news:#g*************@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


Jul 19 '05 #7

P: n/a
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 forinstance 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]" <te*****@dnartreb.noraa> wrote in messagenews:ew**************@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" <br*******@binaer.no> wrote in

message news:#g*************@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

.

Jul 19 '05 #8

P: n/a
Thanks dave! I'll try ;)
"dave" <an*******@discussions.microsoft.com> wrote in message
news:48****************************@phx.gbl...
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]" <te*****@dnartreb.noraa> wrote

in message
news:ew**************@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" <br*******@binaer.no> wrote in

message news:#g*************@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

.

Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.