| Author |
Message |
Andreas Preusker
Joined: 29 Nov 2007 Posts: 2
|
Posted: Thu Dec 06, 2007 12:31 pm Post subject: Can compile when licenses.licx is empty |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Thu Dec 06, 2007 1:01 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Andreas Preusker
Joined: 29 Nov 2007 Posts: 2
|
Posted: Thu Dec 06, 2007 1:18 pm Post subject: |
|
|
Hi Brian,
thanx, that worked. I'm happy now ...... |
|
| Back to top |
|
 |
|
|
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