homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

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




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

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

 

txbakers




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

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.

supert3d




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

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?

txbakers




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

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.

john_k




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

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"-->

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved