Active Server Pages error ‘ASP 0126’

Some errors in Classic ASP programming are cryptic – but fortunately ASP 0126 is fairly easy to understand.

You will get Active Server Pages error ‘ASP 0126’ if you try to include a file that does not exist. This is a straightforward error – that file is not on your server!

Do a response.write of the include file name rather than including it, to make sure you really know what file you are planning on including. Check for typos. Sometimes silly things like the number 1 vs the letter l can trip people up. So does a number 0 and a letter O.

If you’re sure there are no typos in your ASP include, then check to make sure that include file exists on your webserver. Sometimes files get deleted by accident. Make sure it’s in the right directory.

If the file really does exist, next check its permissions to make sure that it is available to the process that is trying to access it.

Be sure to read about the Include Statement to make sure you are using it properly.

ASP Error Listing and Solutions