CDP Forum Forum Index CDP Forum
NOTE: The forum is being replaced by support.icd.no
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Invalid License" error when running application

 
Post new topic   Reply to topic    CDP Forum Forum Index -> FAQ - CDP
View previous topic :: View next topic  
Author Message
Svein



Joined: 14 Mar 2007
Posts: 94
Location: Ålesund, Norway

PostPosted: Mon 2 Apr 12:55:36 2007    Post subject: "Invalid License" error when running application Reply with quote

If your license is otherwise ok, this is normally caused by the Target project not being built after the CDP_Application project.

In CDP 2.2.0.8, the validation of the executable is done by the Pre-Build Event of the Target project. If the Target project is not built after the CDP_Application project has generated a new .exe file, the .exe file will generate an "Invalid License" error during startup.

The problem often occurs when starting the application, and Visual Studio detects that something has changed (even if it has not). It then asks if it should rebuild the executable, but when it does, it does not build the Target project afterwards, rendering the executable unvalidated.

To fix this, either make sure that the Target project is built by always using "Build solution" when building your solution.

Or, move the Pre-build event from the target project to be a Post-build event under the CDP_Application project. The Post-Build event of the CDP_Application project should then become:
Command line: "$(CDPBase)\Tools\ValidateLicense.exe" "$(TargetPath)"
Description: Validating executable $(TargetPath).

Remember to delete the Pre-Build event for the Target project, and to do this modification for all configurations (not just the Debug or Release configuration).
_________________
Svein Erling Linge, ICD
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CDP Forum Forum Index -> FAQ - CDP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group