include file not found

P

Pierre

Hi all,

I have the following message

Active Server Pages error 'ASP 0126'
Include file not found
/logon/secure.asp, line 2
The include file '/logon.inc' was not found.

but i can see the file.

Strange but true

Pierre
 
S

Stefan B Rusynko

Check the path from the page secure.asp to logon.inc
'/logon.inc' path means the file logon.inc is in the root but your page secure.asp is in a folder named /logon/ one level below it
- If it is really in your root try a path '../logon.inc'




| Hi all,
|
| I have the following message
|
| Active Server Pages error 'ASP 0126'
| Include file not found
| /logon/secure.asp, line 2
| The include file '/logon.inc' was not found.
|
| but i can see the file.
|
| Strange but true
|
| Pierre
|
|
 
P

Pierre

My root is a subweb
http://myserver/logon
all the files are on the same level in logon
exept logon.mdb wich is in fpdb

Stefan B Rusynko a écrit dans le message ...
Check the path from the page secure.asp to logon.inc
'/logon.inc' path means the file logon.inc is in the root but your page
secure.asp is in a folder named /logon/ one level below it
 
R

Ronx

Then the path is incorrect - it should be either logon.inc (without
any preceding / or /logon/logon.inc
The root of a website is never the root of a subweb of that website.
 
P

Pierre

Can you clarify for me?

if i am in a subweb name logon in frontpage,
and i ask for the page /test.asp

it then refer to a page in the main web?

In that case what is the use on the include virtual instead of include file?

I see that /logon/logon.inc is working correctly
If i understant the fist / refer to the root of the main web.


Regards,
Pierre
 
R

Ronx

Inline
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

Pierre said:
Can you clarify for me?

if i am in a subweb name logon in frontpage,
and i ask for the page /test.asp

it then refer to a page in the main web?
Correct.

In that case what is the use on the include virtual instead of
include file?

Include file does not allow the leading / whereas include virtual
does.

With include virtual you can use root-relative paths to accurately
pinpoint a file and use the same code snippet in any page in any
folder. With include file you must have the correct relative path,
which means the code snippet has to be tailored for each folder.
See http://www.w3schools.com/asp/asp_incfiles.asp
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top