CodeSmith Community
Your Code. Your Way. Faster!

Could not validate license

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 1 Follower

Not Ranked
2 Posts
Points 70
Patrik posted on 05-18-2009 3:01 AM

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

Answered (Verified) Verified Answer

Top 10 Contributor
2,328 Posts
Points 83,627
Verified by Patrik

Hello,

Is CodeSmith Professional installed on that machine? I'm guessing that the build server is using a different user account. Can you set it to use a predefined user account? This way the licenses will be resolved. You could also place the license in the bin directory.

Thanks
-Blake Niemyjski

Blake Niemyjski
CodeSmith Tools, LLC. Software Development Engineer
Blog: http://windowscoding.com/blogs/blake/
.NetTiers team | Visit http://www.nettiers.com

  • | Post Points: 25
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems