Troubleshooting: Improve First Click Performance of EMS Desktop Client
If you experience a delay on the "first click" of major functions within the EMS Desktop Client that's too long, there are a couple of solutions. One approach is to leave EMS running all day so that you only experience the first click delay once. Another approach, which 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 these steps.
While NGen eliminates the first click delay, we won't be adding it to our standard installation process. It's an optional workaround you take at your own risk.
-
Open a command prompt as an administrator.
Press the Windows key, type "cmd" without the quotation marks, position the cursor over "Command Prompt", right click, and select "Run as administrator."
-
At the C:> prompt, go to the directory where EMS is installed. If you 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, then you should find EMS at the following location:
cd %appdata%\EMS2016\EMS
-
Press Enter and you should 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>
-
Type the following:
\windows\microsoft.net\framework64\v4.0.30319\ngen install ems.exe
-
Press Enter and wait until the process finishes. It will take about 5 minutes. Ignore any error messages.
-
When the installation finishes, you can close the command prompt and run EMS.
-
If you install a new or updated version of the Desktop Client, then you have to run NGen again if you want to eliminate the first click delay.