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

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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Renaming the include file to footerhomeinc.asp

Then use this:

<!--#include virtual="/_includes/footerhomeinc.asp"-->
eightbal68Author Commented:
Renaming of the file did not work.  Is there a setting in IIS7.5 that I am over looking to get ASP files to work with include files?
Instructions for enabling server side includes:

IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

eightbal68Author Commented:
Everything under Application Development has already been installed.
Add .shtml to the Handler Mappings for your app.
eightbal68Author Commented:
Sorry, I forgot to mention that, I have already enabled .shtml, .shtm, and .stm to the handler mappings on this server.
DominoG was essentially right -- you need to follow the steps in the link they provided.

You say that you have done everything, but probably something hasn't been done.  It's hard to tell without seeing the actual configuration.

This is an excellent discussion from David Wang about SSI and IIS:

He suggests re-installing things you think are already installed.  And the documentation DominoG provided showed programmatic ways to edit the Web Site configuration, which you might try as well.
You need to turn on full script errors so you can see the real problem in the browser:

Start an elevated command prompt. Right-click the command shell item in the Start-Accessories menu and select "Run as Administrator".

Run the following command: %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eightbal68Author Commented:
Domino, how long does it normally take to run "%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true:"?
eightbal68Author Commented:
Nevermind this time it went right through.
eightbal68Author Commented:
It would help others at EE if you would post the solution to your SSI config with IIS.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.