Kepware Knowledge Base: Solution
Visual Studio Output Window Shows Error: Wrong License Key
Last Update: 11/7/2018
Problem:
When the ClientAce project is built, the Visual Studio Output window displays an error similar to one of the following: "Error: File not found (C:\My Documents\Visual Studio 2005\Projects\...\EXEname.vshost.exe)" or "Error: Wrong license key".
Possible Cause:
1. The sign tool is being used on a PC with a license key file from a different PC. ClientAce may be licensed to one development PC, and cannot be moved to another PC without being licensed again.
2. By default, the sign button will add lines of code to the project's post-build event. The first line of code signs the project executable. The second line of code signs the project's debug host environment version. For example, a project named "MyProject.exe" would have a debug project named "MyProject.vshost.exe".
Solution:
1. Remove the license from the previous PC.
2. Open the post-build event and remove the following command line event: "C:\Program Files (x86)\Kepware Technologies\ClientAce\Sign\sign.exe" "$(TargetDir)$(TargetName).vshost.exe" "$(TargetName).vshost.lic".
Note: These solutions apply to both C# and VB.Net projects.
©
2021
PTC Inc. All Rights Reserved.