IIS 7 and Above
VBScript server tags in ASP pages not recognized in IIS 8.5
Last post May 23, 2021 09:23 PM by Geeksm12
Apr 15, 2020 06:12 PM|kevroberts|LINK
I'm migrating an ASP web app from IIS 6 to IIS 8.5, and none of the server tags (<% %>) which contain VBScript are being recognized. In some cases, they're being ignored, in other cases, they are being displayed as
text along with the VBScript code they contain. For example, this VBScript is displayed as plain text inside a TextBox instead of evaluating to a string value:
I have made numerous configuration changes to enable ASP:
Apr 16, 2020 05:50 AM|Jalpa Panchal|LINK
Did you enable the dynamic content compression in iis? could you please share the iis installed feature snapshot? what is your page file extension ? also provide some sample code to reproduce the issue.
Apr 16, 2020 01:59 PM|kevroberts|LINK
Hi Jalpa -
.NET 3.5 Extensibility
.NET 4.5 Extensibility
Server Side Includes
Web Socket Protocol
Page file intention: Not quite sure what you’re asking here -- are you concerned about page file size?
<table border="1" width="550" id="table1" cellpadding="2" cellspacing="0">
<input type="text" name="EmpName" size="45" class="BODY_TEXT2" value='<%=Session("EmpName")%>' readonly></td>
Apr 17, 2020 09:34 AM|Jalpa Panchal|LINK
Your file extension is .asp or .vbs?
Apr 17, 2020 04:09 PM|kevroberts|LINK
File extension is .asp and it contains embedded VBScript. This is the first line of the file:
Jul 28, 2020 11:47 PM|disaia|LINK
I'm having the same problem. Any solution?
May 23, 2021 09:23 PM|Geeksm12|LINK
Was getting the same problem, now I have executed successfully. You may check the extension of the file. Is it filename.asp or filename.asp.txt. correct one is filename.asp. this simple video
https://youtu.be/5nlZeIYasMI helps me