Windows Installation (Wizard)
This page details the prerequisites and steps involved to install NCache through installation wizard.
Choosing the Right NCache Installer
You can use either of the two installers for NCache:
- NCache Enterprise (.NET 6) (.msi)
- NCache Enterprise (.NET 4.8) (.msi)(Legacy)
We highly recommend the use of the .NET 6-based NCache installer for all new users, because Microsoft has ceased further development on .NET 4.8, i.e., any ongoing optimizations and new features will only be integrated in newer .NET versions. This is not the case for .NET 6, which ensures compatibility with the latest developments. Therefore, the .NET Framework 4.8-based NCache installer is considered a legacy product and should be selected only by users who are already utilizing .NET 4.8 as a part of their development stack and have their server-side code written in .NET 4.8.
NCache installation occurs via an interactive setup wizard by following these steps:
Search for Command Prompt in the Windows Start menu. Right-click on the search result Command Prompt and select Run as Administrator as NCache must be installed with permission from an admin user.
To install NCache you need to download msiexec.exe file from NCache Download Center and run it from Command Prompt using the command below. Please note that the .msi file may have a different name for the .NET Framework installation.
msiexec.exe /I "C:\NCacheSetupPath\ncache.ent.net.x64.msi"
- The following Welcome to the NCache Setup Wizard screen appears:
The next screen asks you to accept the license agreement.
By clicking I accept the terms in the License Agreement, you are making a legal commitment to abide by the Alachisoft Software Agreement for NCache. You cannot proceed without accepting the license agreement.
The Select NCache Installation Type screen appears.
You can choose from the following installation types:
Cache Server: This option installs both the server and client portions of the NCache software. We recommend you install it on 2 or more servers for reliability - these can be dedicated servers or your web/app servers with a dedicated caching tier for 3 or more web/app server environments. Usually, we recommend a 4:1 or 5:1 ratio between web/app servers and cache servers. If you’re installing an NCache server on web/app servers, ensure you have sufficient memory and CPU power available for application and NCache.
Remote Client: This option installs the remote client libraries along with the client cache. Install this on all web/app servers from where you want remote access to the cache servers. However, we must advise you against installing it on cache servers.
Developer/QA: This option installs the NCache API, online help/documentation, and a local stand-alone cache. Note the following limitations for Developer/QA Installation Type while connecting to remote caches:
- The number of remote clients that can connect to the local cache on the DEV/QA machine is up to 2. You can connect with as many local clients as you want.
- The maximum number of caches that can run on the DEV/QA machine is 3, and the maximum combined size is 2GB.
- The total number of requests/second per local cache is 25.
- To add a client, the user must add the configuration manually in client.ncconf. The DEV installation provides no support for tools (PowerShell or web-based).
- Throttling of 100 requests/sec for each client: All clients licensed under DEV/QA license cannot make more than 100 requests/sec to the remote cache.
- There is a limited number of requests (200,000) a client can send to the remote cache. For instance, in the lifetime of the client application, in case it is licensed under DEV/QA license, the client will stop making requests to the remote cache after it has sent 200,000 previous requests to the same destination. The only workaround is to restart the application for another 200,000 requests. Once the client has made 200,000 requests, a licensing exception will occur saying “Clients running under DEV/QA license cannot send more than 200,000 requests to the remote cache.”
- Select the required installation type and click Next.
Remote Client installation is only required when you are using outProc Client Cache.
- The User Information screen appears to ask for your information. Enter all required information and then click Next.
Make sure that the email address provided is the one used during registration with Alachisoft.
- The Select Installation Folder screen seeks confirmation about where to install NCache. Keep the default location or change it if required. Click Next.
The Configure IP Binding and Firewall Ports screen ensures the following prerequisites:
- NIC binding in case of multiple server IP addresses.
- Configure NCache-specific ports in case of a firewall.
From the dropdown menu, select the IP address you want to bind NCache services.
By default, the firewall configures for all ports used by NCache. Disable the checkbox if you don't want to configure NCache ports with the firewall.
- Click Next.
Set Account to Run NCache Services dialog box is only for ASP.NET Core installation.
- The next screen asks for user credentials with administrative privileges required to monitor PerfMon counters in case of ASP.NET Core installation. Enter the account name and password, or use a local system account. Click on Next.
For .NET Core installation, if you provide an account other than the local account, you have to allow this user to log in to the NCache Service. See troubleshooting for more details.
- By default, the NCache Service will create and start a demo cache named demoCache of topology Partition-Replica at the end of setup installation. You can disable this option from this screen by unchecking the "Start demo cache at the end of the process" option. Click on Install when done.
- After the installation is successful, the following screen is displayed. On this screen, there is an option to Launch the NCache Management Center which automatically launches the NCache Management Center on your localhost after successful setup installation. You also have the option to choose Launch the Getting Started Guide. After you have made your choice, click Finish.
- If you have used an expired installation key, you will get this screen instead of the exit installation screen:
If you have a license key or extension key, you don't need to worry about this message. Use the Register-NCache PowerShell cmdlet to activate your license or extend your evaluation period. Otherwise, contact Alachisoft Sales to purchase an NCache license or extend your evaluation.
You can refer to the Getting Started Guide to set up the NCache environment.
To uninstall NCache through the Graphical User Interface (GUI), follow the steps mentioned below:
- Press Windows + I.
- Click on Apps.
- Under Apps & Features, use the search bar to find NCache or related names.
- Click on NCache from the list and then click the Uninstall button.
- Confirm any prompts and follow the uninstallation steps.
In the case of NCache .NET Core installation, if you choose to use a custom user instead of a local user for the required administrative rights, you need to log in to that service as a custom user. Follow these steps for a workaround:
On Windows, search for Local Security Policy.
Go to Local Policies -> User Rights Assignment.
Double-click on Log on as a service. This option will open Local Security Settings where you will find all users who have access to the services.
Click the Add User or Group... button and add the user here.
Click on OK and Apply to apply these changes.