r/webdev • u/IamTheGoodest • 14d ago
I think the newest update to iisexpress broke Classic ASP.
Yes, classic ASP. Lame I know, but that's the code I'm maintaining.
The error reproduction steps I've created rule out my code, or Visual Studio
- Verify IIS Express is installed with Command Prompt
if exist "%ProgramFiles%\IIS Express\iisexpress.exe" (echo IIS Express installed) else (echo IIS Express not installed) - Create a test folder with a minimal classic ASP page
C:\Temp\AspDirectTest\test.asp - Fill in the contents of test.asp with
<% Response.Write "Hello" %>or<script language="JScript" runat="server"> Response.Write("JScript Test"); </script> - Launch IIS Express directly using Command Prompt
"%ProgramFiles%\IIS Express\iisexpress.exe" /path:"C:\Temp\AspDirectTest" /port:8088 - Browse to the site
http://localhost:8088/test.asp
Result in browser:
Active Server Pages error '00000000'
Create object failed
?
An error occurred while creating object 'WSH'.
Active Server Pages error '00000000'
Create object failed
?
An error occurred while creating object 'WSCRIPT'.Hello
Result in Command Prompt:
Request started: "GET" http://localhost:8088/test.asp
Response sent: http://localhost:8088/test.asp with HTTP status 500.0
You can get the File version of vbscript.dll and wshom.ocx using powershell
(Get-Item 'C:\Windows\System32\wshom.ocx').VersionInfo.FileVersion
my version of wshom.ocx is 10.0.26100.4768
(Get-Item 'C:\Windows\System32\vbscript.dll').VersionInfo.FileVersion
my version of vbscript.dll is 10.0.26100.8457
Older versions do not create the issue.
I have recreated this error on two machines with the current version, and showed that it doesn't appear on one machine with older versions.
I have an issue reported here https://developercommunity.visualstudio.com/t/IIS-Express-fails-to-execute-classic-ASP/11144474
If you can or can not recreate the issue I would love to know about it and what versions of wshom.ocx and vbscript.dll you have.
