There are a few reasons why you could be getting this error:
- The most common cause of this error message is either that MapViewer has not been opened interactively at least once before the script was run, or that MapViewer needs to be opened as an administrator. MapViewer must be opened as administrator interactively at least once to complete the installation process before you can use MapViewer with a script or call it from another program. Please right-click over the MapViewer shortcut or desktop icon and click Run as administrator. The MapViewer program opens, you may need to enter the serial number, and then close it. Then try to run the script or call it from another program.
- The error message may indicate that MapViewer has not been installed correctly. You can try repairing the MapViewer installation, making sure to open MapViewer at the end of the repair, and then attempting to run the script again.
- If you are using MapViewer under Windows Vista/7/8/10, try opening Scripter as administrator. This is different than logging into the computer as administrator. Right click over the Scripter EXE file, desktop shortcut, or link under the Programs menu and click Run as administrator to run it in administrator mode. Once Scripter is opened in administrator mode, then open the script and run it.
If you are running another program that calls MapViewer via automation, try running that other program as administrator. Right-click over that program's shortcut or desktop icon and click Run as administrator. Then perform the actions in that program to call MapViewer.
- If that also doesn’t help, and you are using Windows Vista/7/8/10, you can try turning the UAC (User Account Control) off via the Control Panel | User Accounts. You will need to reboot after UAC is turned off.
- Be sure that MapViewer was installed either directly on the workstation it is being called from, or from the workstation to a network location. If it was installed directly on the network server, it cannot be called via automation from a workstation because the necessary registry items are not created on the workstation. If this is the case, you will need to talk to your IT personnel to get MapViewer installed on your local workstation so you can call it via automation.
Updated October 3, 2016