Welcome to WebmasterWorld Guest from 54.161.64.174

Forum Moderators: ocean10000

Message Too Old, No Replies

Active Server Pages error 'ASP 0126'

Include file not found

     
5:35 pm on Mar 25, 2004 (gmt 0)

10+ Year Member



Active Server Pages error 'ASP 0126'
Include file not found

Very confused on this problem. All paths are correct. Server has SP pack3 scheduled to have 4 put on it tonight. Microsoft error found here [support.microsoft.com...] says it was first corrected in Windows 2000 Service Pack 2.

Anyone else ever have this problem? Any help is much appreciated

10:13 pm on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



you'll have to help us with some more code on this one. Usually "include file not found" means that the include file wasn't found.

This is one of the clearer error messages.

2:59 pm on Apr 8, 2004 (gmt 0)

10+ Year Member



Yeah! had the same problem today. Really weird.

Got this line of code in one of our .ASP pages

<!--#INCLUDE VIRTUAL="\lib\miConst.asp"-->

Double checked, triple checked, quadruple checked. This virtual definately does exist, the code works fine on our live server which is exactly the same build. ( Win2003 / IIS6.0 ). Same permissions on the site ( Read, Write etc... ) yet on this server it didn't work. Truly weird. No reason what-so-ever for it not to work.

Anyway to help the first guy out I was browsing the web for solutions and by default in IIS6.0 Parent Pathing is turned off

Go to your website in question under IIS right click -> Configuration -> Options -> and enable Parent Pathing.

More details read here :
[aspfaq.com...]

For some bizarre reason this worked.

Not sure if similar applies to earlier versions of IIS but worth a shot?

3:44 pm on Apr 8, 2004 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



and here I thought it was a bug in IIS6.0!

It works fine in 5.0. That was one of the reasons I decided against 2003 Server! I didn't want to rewrite my includes.

Glad to know you found that.

3:55 pm on Apr 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



With the VIRTUAL includes, the specified path is assumed to be relative to the website root, rather than to the hosting file's location.

So
<!--#INCLUDE VIRTUAL="\lib\miConst.asp"-->

Should be changed to
<!--#INCLUDE VIRTUAL="lib/miConst.asp"-->

 

Featured Threads

Hot Threads This Week

Hot Threads This Month