Print Page | Close Window

Error executing "JScript"

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31826
Printed Date: 27 March 2026 at 9:22pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error executing "JScript"
Posted By: Roberto Randall
Subject: Error executing "JScript"
Date Posted: 19 May 2025 at 8:40pm
This month I switched to a new server running Windows Server 2025. Everything migrated successfully, but when I run "<SCRIPT Language="JScript" RUNAT=SERVER>" on the domain where I have the forum, I get a 500 error (ExecuteRequestHandler).

I created a test page with sample code from Microsoft, where only the sample code appears: ( https://www.vidauna.com/aaa.asp" rel="nofollow - https://www.vidauna.com/aaa.asp ), and it gives a 500 error upon entering or refreshing the page (F5).

If I run this example (aaa.asp) on a domain other than the forum, it works fine.

I don't understand why it gives an error when running this script on a domain where the forum is located because "aaa.asp" doesn't include any forum pages; it only contains the Microsoft test code.

Within the vidauna.com domain (forum), I have an image album that uses "<script runat="server" language="JScript">" and now it's not working. When it was on the previous server (Windows Server 2022), everything worked fine.

I hope this text is translated from Spanish to English using Google Translate. I also hope someone can figure out what's going on because I've been searching for a solution for 20 days, running all kinds of tests, and if it's run on a domain where the forum is located, this script always returns a 500 error.

Thank you,

-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 May 2025 at 7:16am
We are currently running Windows Server 2025 in our development environment for Web Wiz Forums, as well as for our Web Wiz Forums hosting plans. I tested a simple "Hello World" page using JScript with the `<script runat="server" language="JScript">` tag, and it ran successfully, displaying "Hello World."

I conducted this test on multiple Windows Server 2025 servers, running the simple JScript page from within the Web Wiz Forums websites. I was unable to reproduce any errors.

Have you tried enabling detailed error messages for the website? This would allow you to see detailed error messages with line numbers instead of just the generic 500 error, which doesn’t provide much information.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Roberto Randall
Date Posted: 20 May 2025 at 2:02pm
Yes, it was one of the first things that was done:

Información detallada de error:

Módulo   IsapiModule
Notificación   ExecuteRequestHandler
Controlador   ASPClassic
Código de error   0x00000000
Dirección URL solicitada    https://www.vidauna.com:443/aaa.asp" rel="nofollow - https://www.vidauna.com:443/aaa.asp
Ruta de acceso física   ...\aaa.asp
Método de inicio de sesión   Anónimo
Usuario de inicio de sesión   Anónimo

We use Plesk, and one thing I think might be happening is that there might be some configuration that prevents scripts from running at the same time, or there might be incompatibility with "Server.ScriptTimeout = 90" and "Session.Timeout = 20". Tests have been run by deleting all content from common.asp except for these two lines (leaving the forum down), and the example still doesn't work. However, when I remove the "Session.Timeout = 20" line (leaving only "Server.ScriptTimeout = 90"), the example works fine.

If I remove the "Server.ScriptTimeout = 90" line (leaving only "Session.Timeout = 20"), the example still causes problems, but not as often (when refreshing the page).

What's happening to me is very strange. That's why I think there must be something in the Plesk or IIS configuration that's preventing these scripts (forum and example) from running at the same time.

That's why I'm asking on this forum to see if anyone has experienced this and/or knows how to fix it.

This is the content of aaa.asp. I've also tried setting (on any domain) "Session.Timeout = 20" in aaa.asp (it doesn't matter what time you set: 20, 30, 60, etc.) and the same thing happens: it works once, and it doesn't work once (when you refresh the page (F5)).

Thanks,



<%@ Language= "VBScript" %>
<HTML>  
  <BODY>
  <!-- Call the JScript procedure from within VBScript-->
  <% call printDate() %>
  <!--Call the VBScript procedure from within VBScrip-->
<% Echo %>  
  <BR>
  </BODY>
</HTML>

<%Sub Echo%>
<!--Note: this will not output anything unless the page is called with a query string like https://localhost/test.asp?x=1%20have&y=a%20cunning&z=plan -->
<%
  Response.Write "<TABLE BORDER=1>" & _
    "<TR><TH>Name</TH><TH>Value</TH></TR>"  

  Set objQueryString = Request.QueryString  

  For Each strSelection In objQueryString
    Response.Write "<TR><TD>" & strSelection & "</TD><TD>" & _  
    objQueryString(strSelection) & "</TD></TR>"  
  Next  

  Response.Write "</TABLE>"  

End Sub  
%>

<SCRIPT Language= "JScript" RUNAT=SERVER>  

function printDate()  
{  
  var x

  x = new Date()  

  Response.Write(x.toString())  
  Response.Write("<BR>")
}  
</SCRIPT>




-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat


Posted By: Roberto Randall
Date Posted: 27 May 2025 at 6:08pm
These are the records:

2025-05-18 07:54:18 [IP] GET /aaa.asp |-|ASP_0240|Script_Engine_Exception 443 - [IP] HTTP/2 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:138.0)+Gecko/20100101+Firefox/138.0 - http://www.vidauna.com" rel="nofollow - www.vidauna.com 500 0 0 12893 4337 70

2025-05-18 07:54:44 [IP] GET /aaa.asp |-|ASP_0147|500_Server_Error 443 - [IP] HTTP/2 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:138.0)+Gecko/20100101+Firefox/138.0 - http://www.vidauna.com" rel="nofollow - www.vidauna.com 500 0 0 12893 4337 82

-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net