Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Why am I getting error code "193" when I try to Invoke an Application with SilkTest?

Why am I getting error code "193" when I try to Invoke an Application with SilkTest?

When using the Invoke method to launch an application with SilkTest, you may get the following error message:

This may be caused because the Agent retrieves the iexplore.exe path from the registry and tries to access it iteratively (until it succeeds), in the following manner:

  1. C:\Program
  2. C:\Program.exe
  3. C:\Program Files\Internet
  4. C:\Program Files\Internet.exe
  5. C:\Program Files\Internet Explorer\iexplorer.exe

If any of the first 4 files exist in the locations above, Internet Explorer will fail to invoke and you will receive error 193. The last path is the correct path to iexplore.exe and as such will work correctly.

For example, removing the "C:\Program" file from the C directory, or any of the first 4 files in the list above that may exist, will cause the Invoke method to work correctly. If any of these files are needed it will work fine if you move them to another location.

In the screenshot below it is shown how SilkTest goes through this iteration from the Process Monitor Logs. In the first section the "C:\Program" file exists and so SilkTest tries to open it, succeeds and then the script stops. This produces error 193. In the second section the "C:\Program" file does not exist and so SilkTest navigates correctly to the iexplore.exe path and the script continues running as designed.

Note: if there is a folder or directory with the names as mentioned above it will also work fine, it is only a problem if they are files.


An alternative to this is to edit the iexplore.exe path from the registry. Navigate to "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE" in the registry and put double quotes around the value data.

Change from

C:\Program Files\Internet Explorer\IEXPLORE.EXE

to

"C:\Program Files\Internet Explorer\IEXPLORE.EXE"

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:13
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.