Ansys Learning Forum › Forums › Installation and Licensing › Ansys Free Student Software › JavaScript Runtime Error in AQWA Pre on Windows 11 (Version 24H2) › Reply To: JavaScript Runtime Error in AQWA Pre on Windows 11 (Version 24H2)
Hello,
We have had a few customers reporting this issue - it seems to be related to the Windows 11 24H2 update, where the default JavaScript library version has been changed. The problems that this has caused are not limited to Ansys products! We are not sure if this was intentional, or if it is a bug in Win11, so it may or may not be resolved by a subsequent Windows update.
Strictly, Ansys does not support Release 2024 R2 on this newest version of Windows. However, you can fix the problem for yourself (in Aqwa Workbench, at least) by following the instructions below. You will need to edit two files in the Ansys installation, and I strongly recommend that you create copies of these files before you start.
- Close the Aqwa Workbench editor, if it is still open
- Navigate to C:\Program Files\ANSYS Inc\v242\aisol\aqwa\AQWAPages\scripts
- Open context_functions.js with a text editor
- Search for the string "paramset = ", without quotes; there should be 2 places in this file
- After each line which starts "var paramset = ..." add a new line and type "if (paramset != null)", without quotes (don't worry about adding spaces at the start of the line, javascript doesn't care about whitespace)
- Save the file.
Repeat these steps for ListView.js, in the same folder. There should also be 2 places. Here's the change applied for the second location in ListView.js:
After you have made these changes, you should be able to open the Aqwa Workbench editor without any problems. Please let me know if this works for you, or if you encounter any other issues.
Mike