Web Deployment Troubleshooting

If you experience a delay on the first click of major functions within the EMS Desktop Client, there are a couple of solutions. One approach is to leave EMS running all day, so you only experience the first click delay once. Another approach, that is a bit more involved, is to run a function within .NET called NGen. This function pre-compiles .NET applications to make them load significantly faster and eliminate first-click delays.

Run NGen 

You must have installed EMS and you must have administrative privileges to perform the following steps.

Important!

While NGen eliminates the first click delay, EMS will not add it to our standard installation process; this is an optional workaround you take at your own risk.

  1. Open a command prompt as an administrator:

    1. Press the Windows key.

    2. Type cmd in the search bar.

    3. Position the cursor over Command Prompt, right click, and select Run as administrator.

  2. At the C:> prompt, go to the directory the EMS is installed.

    If you have conventionally installed EMS, then it's typically at the following location:

    cd \program files (x86)\EMS

    If you're using the web deployment option to install EMS, you can find EMS at the following location:

    cd %appdata%\EMS2016\EMS

  3. Press Enter and you might see one of the following where [user name] is your Windows user name:

    C:\Program Files (x86)\EMS>

    C:\Users\[user name]\AppData\Roaming\EMS2016\EMS>

  4. Type the following:

    \windows\microsoft.net\framework64\v4.0.30319\ngen install ems.exe

  5. Press Enter and wait until the process finishes.

    It takes about 5 minutes. Ignore any error messages.

  6. When the installation finishes, close the command prompt and run EMS.

If you install a new or updated version of the Desktop Client, you must run NGen again if you want to eliminate the first click delay.