Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error executing "JScript"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error executing "JScript"

 Post Reply Post Reply
Author
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post Topic: Error executing "JScript"
    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), 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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
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
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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 - 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 - www.vidauna.com 500 0 0 12893 4337 82
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.