Every once in a while you might run into a licensing problem when using CodeSmith Generator. This can be when the Visual Studio add-in becomes corrupted, or you encounter some kind of licensing problem and you have problems activating. You can fix these related problems by resetting the license file and reactivating your copy of CodeSmith Generator.
First you will need to exit all CodeSmith Generator related applications (CodeSmith Generator Studio, Visual Studio) and follow the steps below.
Open the windows run (windows key + r or start -> run) dialog box and type “cmd”
cs /resetlicensehit enter and type
yand hit enter again. This will remove any CodeSmith Generator license files from your computer.
Your command prompt window should look something like this.
C:\Users\Administrator>cs /resetlicense CodeSmith Generator Console v5.3.0 Copyright (c) 2002-2010 CodeSmith Tools, LLC. All rights reserved. WARNING: This will reset your license files and you will need to re-register and activate your license. It will not extend your trial period. Press Y to confirm that you would like to reset your license: y Reset license complete.
Next, launch CodeSmith Generator Studio and try to register your key. You should now see the activation prompt.