Pages

Wednesday, September 4, 2024

installing TagUI on a new Windows PC, and issues with missing MSVCR110.dll. and how to overcome it by installing vcredist_x64.exe for 64-bit systems. (this works for my new PC)

Resolving the PhantomJS Error in PowerShell: "Unable to Load Script" When Running TagUI

If you're using TagUI in PowerShell and encounter the following error when trying to run a script, you're not alone:

plaintext
phantomjs://code/bootstrap.js:113 in __die PS C:\rpa\tagui\flows> cd C:\rpa\tagui\flows\samples PS C:\rpa\tagui\flows\samples> tagui 1_google.tag Unable to open file: C:\rpa\tagui\flows\samples\1_google.tag.js phantomjs://code/bootstrap.js:113 in __die Unable to load script C:\rpa\tagui\flows\samples\1_google.tag.js; check file syntax phantomjs://code/bootstrap.js:113 in __die PS C:\rpa\tagui\flows\samples>

This error message can be confusing, especially for first-time users of TagUI, but it essentially points to a problem with PhantomJS with missing MSVCR110.dll.





The error you're seeing indicates that the MSVCR110.dll file, which is part of the Microsoft Visual C++ Redistributable, is missing on your system. This is a common issue when running applications that depend on specific runtime libraries.

Here's how you can fix it:

1. Install or Repair Microsoft Visual C++ Redistributable for Visual Studio 2012 Update 4:

  • Download the Microsoft Visual C++ 2012 Redistributable from the official Microsoft website: Microsoft Visual C++ 2012 Update 4 Redistributable Packages.
  • Choose the appropriate version based on your system architecture:
    • vcredist_x64.exe for 64-bit systems. (this works for my new PC)
    • vcredist_x86.exe for 32-bit systems.
  • Run the installer and either install or repair the existing installation.

2. Restart Your Computer:

After installation, restart your computer to ensure that the changes take effect.

3. Check for the DLL File:

  • After installing the redistributable, verify that the MSVCR110.dll file is located in the C:\Windows\System32 directory (for 64-bit systems) or C:\Windows\SysWOW64 (for 32-bit systems).

No comments:

Post a Comment