Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The include file '../include/inc_security.inc' was not found. 1

Status
Not open for further replies.

pelagic

Programmer
Nov 7, 2002
97
0
0
US
Hi there,

For some reasons the default.asp page cannot find these 2 files even though these files are in the right location.

<!-- #INCLUDE FILE="../include/inc_header.inc"-->
<!-- #INCLUDE FILE="../include/inc_footer.inc"-->

The inc_header.inc and inc_footer.inc are in the include folder.

default.asp is in root folder
include folder is in root folder
2 .inc file are in include folder.

Thank you in advance.
 
The '..' is asking to go up a level. If you are already in your root, you can't go up!

Try:
Code:
<!-- #INCLUDE FILE="include/inc_header.inc"-->

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
If John's advice does not resolve your problem, then you may want to consider this...

Code:
<!-- #INCLUDE [!]VIRTUAL[/!]="../include/inc_header.inc"-->

Read about it here:

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 

btw... by default, anyone browsing to that file (an easy one to guess) will be able to see all the source code in there due to the file extension - would that be ok ?

Simply change it to .asp instead of .inc and ensure the code is wrapped inside the usual <% %> tags, and that will solve the issue. Or you can configure IIS not to serve files with these extensions.. but it's easier just to change the extension.



=======================================
LessThanDot - The IT Community of the 21st Century

A smile is worth a thousand kind words. So smile, it's easy! :)
 
You also can check if you have Enable Parent Paths if you use it on IIS 6. That's the usual problem with asp on IIS 6, you dont have access to ".." parent.
Check on Home Directory -> Configuration -> Options.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
There are considerable security concerns with allowing access to parent paths.

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top