Hi All,
I'm currently migrating a legacy web site from 2k3/iis6 to 2k12/iis8.5. There is some server side code written in Classic ASP (JScript) which needs to be executable via html extension files. I've tried adding Handler Mappings, tweaking MIME Types and updating applicationHost files directly but still no luck.
I'm probably missing something trivial, so any help would be greatly appreciated.
These are the steps which I have taken:
Installed IIS with following roles:
- ASP
- ISAPI extensions
- ISAPI filters
- SSI
Setup a new website with following configuration:
- Script Language: JScript
- Enable Parent Paths: True
Application Pool:
- Enable 32bit Apps: True
- Managed Pipeline Mode: Integrated
Handler Mappings:
Added the below highlighted mapping to match the existing Classic ASP mapping. This is how it looks in the applicationHost file:
<add name="ASP as HTML" path="*.html" verb="GET, POST, HEAD" type="" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" type="" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
MIME Types
Removed MIME Type for .html - Just in case this was confusing IIS.
Added a new local MIME type for .html, using 'application/asp'
No joy unfortunately, anything in code tags just gets rendered on the page. I've tested with a simple test.asp page and that executes the script successfully.
Any help would be greatly appreciated as I'm struggling with next steps.
Cheers,
Matt