MATLAB: Do I receive License Manager Error -21

MATLAB

License checkout failed. License file does not support this version. License Manager Error -21

Best Answer

This error occurs when attempting to launch MATLAB with a license file that was generated for an older release. See the information below in order to resolve this issue:
Network based licenses:
This error can occur when the version of MATLAB is newer than the version of the license file (license.dat) on the network license manager machine. To resolve this issue, update the license.dat file and/or license manager on the license manager machine to the latest release that you are licensed for. Contact your license administrator to make the updates.
The license.dat file on the server machine is located in:
$MATLABROOT/etc ($MATLAB\flexlm for releases prior to R2010b on Windows)
(where $MATLAB is the MATLAB installation directory)
NOTE: Once you have made changes to your license file, be sure to restart the license manager for these changes to take effect. For more information on how to restart the license manager, see the Related Solution linked below.
Also, if you are using MATLAB R2007b or earlier, make sure the license.dat file on the MATLAB client is in the following format:
SERVER <hostname> <HostID> <port>
USE_SERVER
<hostname> is the hostname of the license server
<HostID> is the HostID of the license server
<port> is the number for license manager daemon (lmgrd)
The license.dat file on the client machine is located in:
Windows
---------
$MATLABROOT\bin\win32 (for 32-bit MATLAB)
$MATLABROOT\bin\win64 (for 64-bit MATLAB)
Linux/Unix/Mac
------------------
$MATLABROOT/etc
(where $MATLABROOT is the MATLAB installation directory)
Standalone based licenses:
If you are receiving this error on Stand Alone installation of MATLAB and have attempted to install from downloaded file, then this error may occur if you have multiple versions of MATLAB downloaded into the same folder. The workaround for this issue is to uninstall and reinstall using fresh downloads.
MATLAB Student Version:
You may receive this error if you have multiple serial numbers for multiple releases, and you use the wrong serial number to activate. To resolve this issue, you will need to reactivate. See the Related Solution for the instructions on how to reactivate the Student Version.