Search
Issues when Installing, Launching, or Opening Files

The ExtendSim installer includes DLLs that need to be registered in the Windows Registry during installation. These error messages indicate that the Windows operating system or your security system is blocking the ExtendSim installer from registering the DLLs.

Right-click the ExtendSim installer and select Run as Administrator. Or contact your IT or Admin and have them install ExtendSim to your user account with the correct Admin permissions (once that happens, it won’t be required again).

If that doesn’t fix the problem, try temporarily disabling your virus protection software while installing ExtendSim.

 

Installation issue with DLLs

ComponentTransferData error message

This error message only occurs when attempting to install a Floating or ASP license.

If you get this error message, it means either:

The ISV port is blocked. You must either unblock the port or use a different port for the ISV.

The License Manager on the Server has either been moved or has not been installed and activated correctly

Please see the document Installing & Activating ExtendSim Floating Licenses to remedy this situation.

When ExtendSim launches it requires the loading of certain files and it expects that those files have been installed at specific locations. If needed files don’t have the correct permissions, or if ExtendSim can’t find the files, ExtendSim will not launch properly. End users must have physical (correct account) and permitted (read/write or full) access to the folder that contains user-modifiable files such as example models and libraries. In addition, so that ExtendSim will know where those needed files are located, the installer places a text file (ExtendSimDocPath.txt) in the Program Files/ExtendSim folder.

Error messageThe most common reasons why user-modifiable and other necessary files were not correctly installed are:

Someone from IT or an Admin installed the user-modifiable files in a folder under their account rather than in a folder accessible by the end user.

The folder containing user-modifiable files does not give the end user or ExtendSim the correct permissions.

The folder that contains user-modifiable files has been moved after installation, so ExtendSim is looking for files at the wrong location.

Error messageIf ExtendSim issues error messages such as “Documents folder not found” or “lp_solve[0] Error…system error code:2” as it tries to launch or gives a similar error message when end users try to open model or library files:

Verify that user-modifiable files such as examples and libraries are installed in a folder that is accessible by the end user (by default, the UserName/Documents/ExtendSim10 folder).

Check the folder permissions where user-modifiable files and extensions are installed. End users need read/write or full access to that folder, depending on its location, so they can open, run, and save models.

So ExtendSim can properly open needed files, right-click its icon and select Run as Administrator as you launch it.

If the user-modifiable files were moved after installation, modify the file ExtendSimDocPath.txt (located by default at Program Files/ExtendSim10) to indicate the new location.

If the computer you have installed ExtendSim on does not contain the Universal C Runtime in Windows, the following error message (or something similar) may appear while trying to launch ExtendSim (or other newer applications):

The program cannot start because api-ms-win-crt-runtime-l1-1-0.dll is missing from the computer.
Try reinstalling the program to fix this problem.

You will need to install the Universal C Runtime (CRT) update on your Windows operating system to enable newer applications (like ExtendSim) to run on a Windows OS earlier than 10. The Microsoft web site offers instructions for updating the Universal C Runtime component.

https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows

By default, ExtendSim opens the Getting Started model when it launches. That model uses the RightClickConnect database, which calls the ExtendSim_DB_Connector DLL. The installer for ExtendSim needs to register that DLL in the Windows Registry during installation. The error message indicates that your system has blocked the ExtendSim installer from registering the DLL.

Right-click the ExtendSim application and select Run as Administrator. Or contact your IT or Admin and have them launch ExtendSim (in your user account) with the correct Admin permissions (once that happens, it won’t be required again).

If that doesn’t fix the problem, install ExtendSim again with your virus protection software temporarily disabled.

In an ActiveX/COM client/server process, if a Client app tries to launch ExtendSim as a Server, you might get the error message Run-time error 429: ActiveX component can’t create object. This occurs when the operating system restricts ExtendSim from registering as an OLE/COM server.

For ExtendSim to be able to interface with Excel and other apps, launch ExtendSim with Administrative privileges so that it can complete the process of registering itself as an OLE/COM server. To do that, either right-click the ExtendSim application and select Run as Administrator. Or contact your IT or Admin and have them launch ExtendSim in your user account with the correct Admin permissions (once that happens, it won’t be required again).

Data Execution Prevention (DEP) is a Windows security feature that can help prevent damage to your computer from viruses and other security threats. It does this by stopping the execution of potentially malicious code from the DATA segments of memory. The ExtendSim application has an integrated compiler, so it creates and executes compiled code from the DATA segments of memory when it runs. Depending on how it is set, DEP can interpret this as malicious data, rather than legitimate code, and stop ExtendSim from properly launching (by giving an Unknown msg error) or prevent it from accepting a block in a new model (by giving an Unknown block message).

To access DEP:

Go to the System & Security or Maintenance in Windows Settings

Click System, then go to Advanced System Settings

Under Performance, click the Settings button and select the Data Execution Prevention tab.

Since many legitimate applications execute code in the DATA segments of memory, Windows has two methods for allowing applications to be exempt from DEP restrictions:

bulletgoldThe default setting for DEP is "Turn on DEP for essential Windows Programs only." If DEP is in this mode, ExtendSim will run properly.

The higher security setting for DEP is "Turn on DEP for all programs and services except those I select." If DEP is in this mode, it will interpret ExtendSim as being a potential threat and prevent ExtendSim from properly running unless ExtendSim is added to the list of exempted programs. To add ExtendSim to the list of programs that allow Data Execution, find the DEP dialog and add ExtendSim.

After you have activated ExtendSim, the Activation Dialog should not appear again spontaneously. If it does appear, it could indicate that:

The license file (extendsim.lic) has been placed at the wrong location or has been deleted. Verify that the license file is in the ExtendSim folder that contains the user-modifiable files (libraries and example models); by default, that folder is UserName/Documents/ExtendSim10.

There are two instances of the same ExtendSim product installed on your device. For example, you may have downloaded a Trial version to use as the updater for an existing installation. To properly update the existing files, the Trial version must be installed using the exact same folder name and to the same location as the current installation. If there are duplicate installations, uninstall the Trial version and reinstall it over the existing installation so that it updates the ExtendSim 10 files.

If ExtendSim fails on launch with Unknown message or fails when placing a block in a new model with the Unknown block message, it is probably due to a Windows security feature called Data Execution Prevention (DEP).

DEP can help prevent damage to your computer from viruses and other security threats. It does this by stopping the execution of potentially malicious code from the DATA segments of memory.

ExtendSim has an integrated compiler, so it creates and executes compiled code from the DATA segments of memory. DEP can interpret this as malicious data, rather than legitimate code, and stop ExtendSim from properly launching or running.

To access DEP:

Go to the System & Security or Maintenance in Windows Settings.

Click System, then go to Advanced System Settings.

Under Performance, click the Settings button and select the Data Execution Prevention tab.

Since many legitimate applications execute code in the DATA segments of memory, Windows has two methods for allowing applications to be exempt from DEP restrictions:

The default setting for DEP is "Turn on DEP for essential Windows Programs only." If DEP is in this mode, ExtendSim will run properly.

The higher security setting for DEP is "Turn on DEP for all programs and services except those I select". If DEP is in this mode, it will interpret ExtendSim as being a potential threat and prevent ExtendSim from properly running unless ExtendSim is added to the list of exempted programs. To add ExtendSim to the list of programs that allow Data Execution, find the DEP dialog and add ExtendSim.

Security features in Windows operating systems (especially since Windows 10), and virus protection applications in general, can sometimes interfere with installing or launching ExtendSim files. Security issues most often occur because:

The ExtendSim installer installs DLLs that need to be registered in the Windows Registry during installation. If the Windows operating system or your security software restricts this:

You’ll get a ComponentTransferData or Codebase failed to register error as the installer tries to register the DLLs.

If that doesn’t happen, you might get a _RightClickConnect database is missing message when ExtendSim launches and tries to open the Getting Started model, indicating that a required DLL is missing.

The ExtendSim application has an integrated compiler, so it creates and executes compiled code from the DATA segments of memory when it runs. In trying to protect your device:

Windows Data Execution Prevention (DEP) could cause ExtendSim to fail on launch and report an Unknown msg error or fail when placing a block in a new model and give an Unknown block message.

Some security systems could incorrectly identify ExtendSim as potential malware and stop it from launching or running, even though ExtendSim is digitally signed.

For a Floating License:

The installer for the License Manager not only creates the Service but tries to start it running automatically. Security systems will sometimes block the service from starting.

For automatic activation of the License Manager, encrypted data must be exchanged through port 80 over the internet. Security systems sometimes block that communication, so you must do a manual activation.

The ISV port must be unblocked or you will get a Connection refused at Server message when you launch ExtendSim.

___________

If you are having security problems installing or launching:

Be sure you have the correct permissions. If possible, right-click the installer or the ExtendSim application and choose Run as Administrator. Or contact your IT or Admin to install or launch with permission.

Temporarily disable your virus protection software while installing ExtendSim or activating a Floating License’s License Manager. Note that for Windows 10, Windows Defender acts as an anti-virus system as discussed below.

If the ISV port for a Floating license is blocked, either unblock the port or use a different port for the ISV Server, as discussed in License Manager on Server FAQs.

See the Data Execution Prevention (DEP) instructions below if ExtendSim fails on launch or upon block placement.

The installer for ExtendSim installs DLLs that need to be registered in the Windows Registry during installation. Some security systems could therefore incorrectly identify ExtendSim as potential malware and stop it from launching, even though ExtendSim is digitally signed. To overcome this, try temporarily disabling your virus protection software while installing ExtendSim.

In addition to any installed virus protection apps, Windows 10 installs with a Windows Defender Security Center that has virus, threat, account, firewall, and network protection. So even if you have temporarily disabled your virus protection app, the Security Center could be blocking the installation or launching of ExtendSim. You may need to change the settings or set the ExtendSim installer to be excluded in the Windows Defender Security Center. Be especially aware of those settings if you are attempting to install ExtendSim on virtual machines using Windows 10.

In certain unusual cases, standard C runtime libraries that ExtendSim expects to find may be missing from your Windows operating system. In that case you will get the error message api-ms-crt-runtime dll is missing from the computer when you try to launch ExtendSim. In this case you need to update your Windows operating system with the Universal C Runtime (CRT) component. See Microsoft support for information.

In an ActiveX/COM client/server process, if a Client app tries to launch ExtendSim as a Server, you might get the error message Run-time error 429: ActiveX component can’t create object. This occurs when the operating system restricts ExtendSim from registering as an OLE/COM server. So ExtendSim can register itself as an OLE/COM server to interface with Excel and other apps, right-click the ExtendSim application and choose Run as Administrator.

The Floating License of ExtendSim is typically installed in an environment where the Client device is used by only one person. This works well for academic institutions where students and professors install ExtendSim on their own computers (the Clients), such that it can be used on the network or checked out (roaming) for up to 30 days.

However, if ExtendSim is installed in a lab environment where multiple people log in to use the same computer, the user-modifiable files (example models, libraries, etc.) must be installed to a location that all the students can access. To do that:

As you install on each multi-user computer, when you get to the installer’s Installing User Documents section, select a location on the target machine that the students will have read/write access to. For example, you might select "C:\" as the Destination Folder when you are at the Installing User Documents section. This will install user-modifiable files at the root of the C drive.

When you activate ExtendSim, copy the license file (extendsim.lic) to the folder selected in the User Documents section of the installer. In the example, this would be C:\ExtendSim10

Give the Users group full (not just read/write) access to the folder that has the user-modifiable files.

Note: at the end of their sessions, students should save their models (.mox) files to locations where other users won't interfere with and/or copy their work. However, they should use a local copy while doing work. Models will run slowly if they reside on an external drive or in the cloud.