Question

I have a legacy website in which .HTML, .ASP, and .INC files are being used. Problem is all pages have VBScript code not parsed by IIS and thus written on page as static text. I want to fix it. All .html pages include both .ASP and .INC for scripts.

Now currently IIS Handlers are as below: all .htm, .html, .inc have IsapiModule handlers as well as ServerSideIncludeModule. This is what I suspect causing issue. So now if I remove ServerSideIncludeModule handlers and just keep IsapiModule, it parses VBScritpt correctly but HTML pages with INC inclusion do not open but ask to save a file to download. What am I missing here? This worked on my localhost fine but not on Production.

How can I fix this issue?

Thank you!

Was it helpful?

Solution

We solved this problem and posting solution so that someone reading this later can try this if it helps..

we did "Set enable 32-bit Applications to False" in Application Pool for this website and it resolved the issue. No handlers were changed while doing this.

OTHER TIPS

There is an issue on client and server side code. HTML pages can read only client side code but not the server side code. Asp is a server side language and a server can read asp codes written on a .asp extension file.
So my suggestion will be try your codes in .asp files. Browsers will read the HTML codes and show you the HTML output and IIS will read the server side codes(vb-script codes)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top