Licensing behind a firewell

Automate and integrate using the SQL comparison API

Moderator: Chris Auckland

Licensing behind a firewell

Postby scotty2012 » Thu Jul 07, 2011 7:43 pm

I have activated my SQL Compare instance with the manual method, and it worked fine. I am now trying to activate using the information found here:
http://www.red-gate.com/supportcenter/Content?p=SQL%20Comparison%20SDK&c=SQL_Comparison_SDK/help/8.0/SDK_Licensing.htm&toc=SQL_Comparison_SDK/help/8.0/toc68944.htm

I've also tried with the machinehashutility.exe which seems to execute fine (after I added my proxy to machinehashutility.exe.config), but I still get prompted for the serial number when I build my project that uses the SQL Compare SDK. When I click 'Activate' the box just closes and then I get these errors:

Code: Select all
Error   2   Exception occurred creating type 'RedGate.SQLCompare.Engine.Database, RedGate.SQLCompare.Engine, Version=7.1.0.182, Culture=neutral, PublicKeyToken=7f465a1c156d4d57' System.IO.FileNotFoundException: Could not load file or assembly 'RedGate.Licensing.Client.resources, Version=2.7.0.6, Culture=en-US, PublicKeyToken=7f465a1c156d4d57' or one of its dependencies. Thesystem cannot find the file specified.   C:\\source\\enterprise\\Development\\Current\\build\\CustomBuildActivities\\CustomBuildActivities\\licenses.licx   1   CustomBuildActivities
Error   3   Exception occurred creating type 'RedGate.SQLDataCompare.Engine.ComparisonSession, RedGate.SQLDataCompare.Engine, Version=7.1.0.230, Culture=neutral, PublicKeyToken=7f465a1c156d4d57' System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\\source\\enterprise\\Development\\Current\\lib\\RedGate\\RedGate.Licensing.Client.resources.dll' or one of its dependencies. The system cannot find the file specified.   C:\\source\\enterprise\\Development\\Current\\build\\CustomBuildActivities\\CustomBuildActivities\\licenses.licx   2   CustomBuildActivities
[/url]
scotty2012
 
Posts: 3
Joined: Thu Jul 07, 2011 7:33 pm

Postby james.billings » Mon Jul 11, 2011 12:46 pm

Not finding the resources file is quite a common error with the SDK - a couple of things to try are:

- try building one of the sample applications, and activate that.
- make sure your app isn't targetting the .NET 4 Client profile, instead, use the full one, or ideally 2 / 3.5

When it fails \"correctly\", you should still be able to then follow the manual activation procedure if necessary.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby scotty2012 » Mon Jul 11, 2011 2:22 pm

Hi James,
I was able to build the SQL Compare example application with no problems, but it did not ask me to activate. I am using the .Net 4.0 framework in order to integrate with TFS.

I was able to get the licensing in my DLL done using this method:
http://www.red-gate.com/supportcenter/C ... 000115.htm

But, when I try to actually use the dll, I get an exception with the message: \"You do not have a valid license for the SQL Comparison SDK\". But the server that is using SQL Compare has a valid licensed copy installed.
scotty2012
 
Posts: 3
Joined: Thu Jul 07, 2011 7:33 pm


Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests