windows application using JScript code for different functionalities. it is not working properly after latest upgrade to Windows 11 24H2

Amit Kanase (akanase) 10 Reputation points
2024-11-19T04:49:31.8066667+00:00

We have a windows application written in Delphi 10.2 Language and in background running JScript code for different functionalities. which was working fine earlier with windows 11 23H2. but after latest upgrade Windows 11 24H2 same JScript code is not working and throwing error: Object doesn't support this property or method at multiple places.

Jscript error

JScript error 2

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-11-20T07:43:44.33+00:00

    Hello Amit Kanase (akanase),

    Thank you for posting in Q&A forum.

    This error, "Object doesn't support this property or method," often occurs when the JScript engine encounters an object or method that is no longer supported or has been altered in the new environment.

    Here is something you could try:

    1. Review the Windows 11 24H2 release notes to identify any deprecated features or changes in the JScript engine that might be causing the issue.
    2. Ensure your JScript code is up-to-date and compatible with the latest standards. Look for any deprecated methods or properties and replace them with their modern equivalents.
    3. Run your application in compatibility mode for an earlier version of Windows. Right-click on the application executable, go to Properties > Compatibility, and select an earlier version of Windows.
    4. Use debugging tools to pinpoint the exact lines of code causing the error. Tools like the Developer Tools in browsers (F12) or dedicated JScript debuggers can help identify problematic code.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.