Re: SSI "include file" doesn't work under IIS 5.1

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 03/14/04


Date: Sun, 14 Mar 2004 13:09:14 +1100

Hi:

You should not be double-clicking on the file. You should be using a http://
request, eg:

http://localhost/index.shtml

Server-side includes require the request to go through the webserver (hence
server-side includes). If you just double-click on it in Explorer, you're
just opening a file on your hard disk.

The fact that the extension is mapped to 404.dll indicates that you have run
the IISLockDown tool on your computer (this disables a lot of
uncommon/unused extensions). If you had done http://localhost/index.shtml
before, you should have received a 404 File Not Found error. Now that you've
mapped it to ssinc.dll you should received index.shtml.

If you still receive a 404, you may need to alter your URLScan.ini settings,
located in:
c:\windows\system32\inetsrv\urlscan\urlscan.ini
to allow .shtml requests.

Cheers
Ken

"Marco Veniani" <mv@chpro.it> wrote in message
news:BCF58E97-B2FE-4435-A2BC-56CA178329F5@microsoft.com...
: Thanks you Ken,
:
: In the "Mappings" tab there was "404.dll" instead of "ssinc.dll"
: I have changed it, but it still doesn't work! :-(( I have even restarted
IIS.
: Into the "Verb Limit to" I put "GET,HEAD,POST,TRACE". Is it ok ?
:
: Another thing: on the same PC I have IE 6.0 and Mozilla
: and when I change the index.html extension into .shtml the related icon
becomes the Mozilla one.
: As a matter of fact when I double click on index.shtml it opens Mozilla
instead of IE.
: Could it be a problem ?
:
: Anyway, in the previous mail you said: "...since asp.dll also can handle
#include directives"
: and I have seen that the mapping to .asp file is with asp.dll
: but even if I put the .asp extension it still doesn't work.
:
: ken!! help me please!
:
:
: ----- Ken Schaefer wrote: -----
: [...]
: On the "Mappings" tab, you should see a list of extensions, and what
.dlls
: those extensions are mapped to. Make sure that .shtml is in the list,
and
: that it is mapped to c:\windows\system32\inetsrv\ssinc.dll
:



Relevant Pages