How to Fix: This product key cannot be used to extend the use of this product in Visual Studio

RECOMMENDED: Click here to fix Windows errors and optimize system performance

Visual Studio 2010 users report the error “The Product key cannot be used to extend the use of this product”. If you see this message, it is because your product key has already been exchanged on this site.

The ability to download a license may also be caused if you reset your password for yourself instead of resetting it yourself on the local computer. Someone like an administrator who resets your password can disable the user-specific encryption key windows that Visual Studio uses to protect certain data. As a result, some account information is no longer available and Visual Studio does not handle this case properly (we must delete invalid data).

To delete invalid cached data, you must run the following file:

1) Close Visual Studio.

2) Delete %localappdata%.IdentityService\SessionTokens.json.

To determine if deleting the file can solve your problem, you can display the log files at %temp%\servicehub\slogs.

In the logs, you should see

January 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.


System.Security.Cryptography.CryptographicException: Key not valid for use in specified state

If this is the case, delete the SessionTokens file above and restart Visual Studio to be able to connect and get a new license.

When reporting application-related problems, it is very useful to attach the contents of the %temp%\servicehub directory for diagnosis.

Use the VS Web Installer.

Online/Web-Installer is a small installation that downloads the remaining components after its execution. You need Internet access every time you want to install the Web/Online Install a program or software.

The online installer of each program downloads the updated software or tool.
It first downloads the small file, then during installation, you can only download the few components or necessary components of that particular software or tool.
These are good for a fast internet connection.
The online installer first checks the system requirements and then downloads the supported tool to your system. Whether it’s 32-bit or 64-bit.
The online installer is good if you plan to download the individual component of a software or program.

Disable and activate Internet Explorer

To solve this problem, some users had to “disable” their Internet Explorer (IE) installation under “Programs and features” -> “Enable or disable window features” so that Visual Studio’s “Login” feature does not stop at this strange “script error”. First, this happened because an older IE was pre-installed on your Windows operating system, which takes you a long time to get it to connect.

Let us know in the comments below if any of these solutions have helped you solve your VB license problem.

RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance