Use the search feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Alternatively, if you are unable to find a solution, we have an additional resource - our PTC eSupport Portal . If you are prompted to log into the eSupport Portal, you can use your My Kepware credentials. Need a My Kepware account? Create one here .

Search Solution Results By:
View All Solutions

Kepware Knowledge Base: Solution

Visual Studio Output Window Shows Error: Wrong License Key

Last Update: 11/7/2018

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".

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.

Related Products