Could not validate license - General - Support Forums - CodeSmith Community
Welcome to the CodeSmith Community!

Could not validate license

Support Forums

A description has not yet been added to this group.

Could not validate license

Answered (Verified) This question is answered

Hi

I just purchased Codesmith professional and have recived a license file. Now I want to integrate the code generation in our build process but this doens't seems to work.

I call Codesmith with the following nant "code"

<exec program="${codesmith.exe.path}\cs.exe">
            <arg value="${nettiers.project.path}"/>
            <arg value="/p:OutputDirectory=${nettiers.output.dir}"/>           
</exec>      

When I log on to the build server and runs this task from the console eg. nant -buildfile:codesmithgenerator.build , everything runs perfect.

But when I calls it from CruiseControl I get an error that Codesmith cant validate the license.Right now I'm using Codesmith  5.1.0.8031 and nant 0.85.

Any ideas?

Error message

DeployLX.Licensing.v3.NoLicenseException: A valid license could not be obtained for 'CodeSmith'. Please contact CodeSmith Tools, LLC for assistance.
Reason:
No licenses found in the suggestion cache.
No compiled licenses found.
Could not validate license "Professional Edition (CS50P-)" in C:\Documents and Settings\Default User\Local Settings\Application Data\CodeSmith\v5.1\CodeSmith50.lic.
Serial number not provided.
Could not validate license "Standard Edition (CS50S-)" in C:\Documents and Settings\Default User\Local Settings\Application Data\CodeSmith\v5.1\CodeSmith50.lic.
Serial number not provided.
Could not validate license "Server Edition (CS50M-)" in C:\Documents and Settings\Default User\Local Settings\Application Data\CodeSmith\v5.1\CodeSmith50.lic.
Serial number not provided.
No licenses found in C:\WINDOWS\assembly\GAC_32\CodeSmith.Engine\5.0.0.0__9fd61cdb91609a7a.
No licenses found in C:\Program Files\CodeSmith\v5.1.
No licenses found in the current assembly.
Could not validate license "Evaluation Registration" in C:\Documents and Settings\Default User\Local Settings\Application Data\CodeSmith\v5.1\CodeSmith50.lic.
The license has not been registered.
Could not validate license "Evaluation Edition (CS50T-)" in C:\Documents and Settings\Default User\Local Settings\Application Data\CodeSmith\v5.1\CodeSmith50.lic.
Serial number not provided.
at b5.a(Object A_0, Type A_1, m A_2, LicenseContext A_3, StackTrace A_4)
at b5.a(Object A_0, Type A_1, m A_2)
at CodeSmith.Engine.CodeSmithLicense..ctor(Boolean A_0)
at CodeSmith.Engine.CodeSmithLicense.a(Boolean A_0)
at CodeSmith.Engine.CodeSmithLicense.a()
at CodeSmith.Engine.CodeSmithLicense.get_IsSDK()
at CodeSmith.Engine.CodeSmithLicense.get_AllowSDKFeature()
at CodeSmith.Engine.ProjectCodeGenerator..ctor()
at CodeSmithConsole.EntryPoint.a(String A_0, ConsoleArguments A_1)
at CodeSmithConsole.EntryPoint.b(String[] A_0)

End of ErrorMessage

 

 

 

 

 

  • Post Points: 35
Verified Answer
Page 1 of 1 (2 items)