PDA

View Full Version : Path not found error....same script working fine in another folder!


nicky77
09-08-2008, 03:21 PM
Hi, I'm a PHP developer having to do some scripting in ASP classic, and I've got a strange problem when i try to include a file in same directory. I'm getting the following error:

Microsoft VBScript runtime error '800a004c'

Path not found

/html/junior/junior_news/Loader.asp, line 68

The Loader.asp file is in the same directory as the script which is trying to include it, using the following at the very top of my file:
<!--#include file="Loader.asp"-->

I have used a very similar script in another folder on the same domain, and this has no problem including the Loader.asp file which is stored in that directory. I can't see what the difference is here at all. Any ideas anyone?

Spudhead
09-08-2008, 04:09 PM
The error isn't with a file trying to include Loader.asp - it's something on line 68 of Loader.asp that's causing the problem.

nicky77
09-08-2008, 04:49 PM
Thanks spudhead, i am a clown for not realising that.

Spudhead
09-08-2008, 05:00 PM
I've made the same mistake many, many times :D