Red Gate forums :: View topic - Can compile when licenses.licx is empty
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Toolkit Previous Versions
SQL Toolkit Previous Versions forum

Can compile when licenses.licx is empty

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Andreas Preusker



Joined: 29 Nov 2007
Posts: 2

PostPosted: Thu Dec 06, 2007 12:31 pm    Post subject: Can compile when licenses.licx is empty Reply with quote

Hi,

when i try to compile my compare project (VS2005) on a XP 64bit maschine and have the following entries in the licenses.licx (RedGate.SQLCompare.Engine.Database, RedGate.SQLCompare.Engine) , i get an error : "could not load file or assembly .... RedGate.SqlCompare.Engine.dll". The setting "target platform" is set to x86.

If the licenses.licx is empty, i can compile the project.
What's my fault?

We are using "Red Gate SQL Bundle Pro". Where does the license information have to be stored?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6649

PostPosted: Thu Dec 06, 2007 1:01 pm    Post subject: Reply with quote

Hi Andreas,

Thanks for your post. There is a technical reason why this happens, and it's nothing to do with how you've set up licenses.licx or your project. When Visual Studio determines that it needs to licence an assembly, it calls a utility called lc.exe, which comes in a 64-bit version and a 32-bit version. Even when you compile your application as 32-bit, you still need to trick Visual Studio into loading 32-bit lc.exe. This can be done using a pre-build and a post-build event:

Right-click the project and select properties. Next, click 'Build Events'.
Set a new pre-build event:
c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe setwow
Set a new post-build event:
c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64 set64

Note that the paths may differ based on the installation folder of your .NET Framework.
Back to top
View user's profile Send private message
Andreas Preusker



Joined: 29 Nov 2007
Posts: 2

PostPosted: Thu Dec 06, 2007 1:18 pm    Post subject: Reply with quote

Hi Brian,

thanx, that worked. I'm happy now Wink ......
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
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