homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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'
What to do when you get this error, but the include file exists

5+ Year Member

Msg#: 3671352 posted 4:21 pm on Jun 10, 2008 (gmt 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.


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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved