For the local mirror on my development PC of a site I've been managing for some years, I use the built in IIS (XP pro sp2) to act as a server for local web pages, and some of them use a little bit of simple ASP scripting.
Sometimes, with so called "security" updates, Microsoft does something to the system which disallows this scripting.
I've fixed it once before but this time I don't seem to be able to (either because something different has happened or I've forgotten what I did last time)
HTML pages work fine served via localhost, and even ASP pages, provided they don't do anything too clever (ie <%'...%> comments work OK).
But somewhere in the past three days (during which an MS security update occurred), the scripts have stopped working again.
What happens is that when I click a link to a page that uses the scripts, the IIS stalls ("waiting for localhost..."). Sometimes it requires a PC reboot to get it moving again. When this happens, I can't stop/start the IIS service in the services control applet, until I reboot the PC.
Here's the script that causes the pain (hopefully doesn't disappear when read in this message):
Expand|Select|Wrap|Line Numbers
- <%
- filespec = "ctimes/" + request("id") + ".htm"
- filespec = server.mapPath(filespec)
- content = server.createobject("scripting.fileSystemObject").openTextFile(filespec).readall
- response.write(content)
- %>
Expand|Select|Wrap|Line Numbers
- <a href="ct.asp?id=ct01oct06">more</a>
It's roughly the equivalent of a
Expand|Select|Wrap|Line Numbers
- <cfinclude template="#stuff#">
The scripts have been working since 1999 on this PC and several other PCs with IIS, and work fine on the remote host.
I think it must be a security setting thing but I can't work out what.
I'm also getting an EventID 10016 error on DCOM, ("The application-specific permission settings do not grant Local Activation permission for the COM Server application") relating to MDM.EXE, the machine debug manager, but that may or may not be related.
Can anyone help?
DN