In file C:\Web\ssr\menutest2.shtml
I have:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>Menu Test 2</title>
</head>
<body>
<table>
<!--#include virtual="TopNavMenu2.txt" -->
<tr><td><h2>Hello World</h2></td></tr>
</table>
</body>
</html>
In file C:\Web\ssr\TopNavMenu2.txt
I have:
<!-- TopNavMenu2.txt -->
<tr><td><h2>Hi there!</h2></td></tr>
As a result, I get:
HTTP/1.1 404 Object Not Found Server: Microsoft-IIS/5.1 Date: Thu, 28 Feb 2008 21:17:37 GMT X-Powered-By: ASP.NET Connection: close Content-Type: text/html
404 Object Not Found
Hello World
That is, IIS can't find the "include" file.
I am running on my local machine, WinXP, SP2, IIS 5.1
The sub-directories "Web" and "ssr" have "read and execute" permissions
Start Free Trial