Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Active Server Pages error 'ASP 0126'

What to do when you get this error, but the include file exists

4:21 pm on Jun 10, 2008 (gmt 0)

New User

5+ Year Member

joined:June 10, 2008
posts: 1
votes: 0

I encountered this error when migrating a classic ASP application from a deprecated web server to its replacement.

I was getting an error complaining that an include file could not be found. After validating the path, and double checking the settings on the working server, the solution was obvious (though it took me a while to see it):

I had erroneously configured the virtual directory on the new server as a .NET application. As such, it was not properly handling includes.

To resolve this, go to the root path for the virtual directory in which your classic ASP site resides, and do the following:

1. Right-click on the folder, and select Properties
2. Next to the name of the Application (lower half of the 'Directory' tab), click Remove.

This should fix the problem. If not, there may be a deeper cause, but in my case, this did the trick.