"Could not load script." while trying to open a script in VuGen

  • KM03632987
  • 08-Apr-2020
  • 08-Apr-2020

Summary

"Could not load script." while trying to open a script in VuGen

Error

When attempting to open any scripts (independently of the protocol), VuGen 2020 is displaying the error: "Could not load script."

Error

 

Same problem happens even for recent scripts created in VuGen 2020.

Reviewing debug logs of VuGen, we can identify some error messages referring to a specific solution (.ltsln extension file); however, that solution file does not exist on the VuGen machine as it was deleted.

Cause

When VuGen is launched it tries to read the persistence files located under the AppData folder. Some of those persistence files, hold the list of recent solutions and scripts, used in VuGen.

If some solution files are deleted (outside of VuGen), this process will not update the recent items list and therefore, when starting VuGen, it will try to locate those solutions that were deleted.

Since it fails to find them, then we get the exception. 

Fix

In order to solve this issue, follow the below steps:

  1. Close all VuGen instances.
  2. Go to the Hewlett-Packard folder under AppData folder (“C:\Users\<user>\AppData\Roaming\Hewlett-Packard")
  3. Rename or delete the “LoadRunner” folder.
  4. Once it is done, launch VuGen again and see if the problem is solved.

Note: This issue is already fixed in LR2020 SP1.