We help IT Professionals succeed at work.
Get Started

Why won't my ASP static site "include" statement work in a virtual directory on IIS7.5?

Last Modified: 2012-05-09
My company has a static website that is coded in ASP.  In IIS7.5 I have verified that my asp.dll file is in C:\Windows\System32\inetsrv.  I have installed every Windows IIS feature available except for the ability to ftp.  When I try to browse this site from IIS, I get "An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error."  At that point I will go to my "C:\inetpub\logs\LogFiles\W3SVC1" to view my log file and I find the error message "|54|ASP_0126|Include_file_not_found 80".   I tried various combinations of <!--#include virtual="./_includes/footer-home.inc.asp"-->, <!--#include virtual="../_includes/footer-home.inc.asp"-->, <!--#include virtual="_includes/footer-home.inc.asp"-->, <!--#include file="_includes/footer-home.inc.asp"-->, <!--#include virtual="C:\inetpub\wwwroot\Aircelcorp\_includes"-->, etc.  I have set Enable Parent Paths to true.  Any information to point me in the right direction would be much appreciated.
Watch Question
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE