Problem with licensing RedGate SDK

Automate and integrate using the SQL comparison API

Problem with licensing RedGate SDK

Postby vuquangchien » Wed Jun 06, 2012 8:34 am

I'm having real trouble with licensing RedGate SDK.
1) If I use SDK version 8.0, my project has to be in .NET 3 in order for the confirmation pop-up to show for registering. If not, visual studio will give me a creepy error in output windows telling me that it cannot find some unrelated dll.
2) Now I'm moving to SDK version 10.0, the latest release. When I register my application it runs fine. But when my application start, we encounter the frustrating exception about: "Ambiguous references"
InternalXmlHelper.vb(9) : error BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.

After several investigation, I think that RedGate SDK reference to some earlier .NET framework dlls, which makes our application have 2 version of .NET resulting in conflicts.
What should I do? I've worked on the SDK for weeks and are very frustrated now. I do appreciate any help provided
vuquangchien
 
Posts: 3
Joined: Wed Jun 06, 2012 8:26 am

Postby Brian Donahue » Thu Jun 07, 2012 10:53 am

Hi,

Sorry for the inconvenience. The problem this time, as I understand, is caused by us implementing our own "ExtensionAttribute" and then later Microsoft in .NET 3.5 SP1 implementing exactly the same thing. If that's right, targeting your project at .net Framework 2.0 should solve it.

The first problem was caused by Microsoft's resource reader in v4 being incompatible with resources produced by .NET 2. The window that displays the dialog where you enter your serial number has embedded resources in it. This will be fixed in a future version of the SDK.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby vuquangchien » Sat Jun 09, 2012 4:30 am

Thank you Brian for your explaination
vuquangchien
 
Posts: 3
Joined: Wed Jun 06, 2012 8:26 am

Postby Brian Donahue » Mon Jun 18, 2012 9:23 am

Out of curiosity, what code exists at InternalXmlHelper.vb line 9?
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby vuquangchien » Mon Jul 23, 2012 4:20 pm

There's no relevant code at line 9. My guess is that's some line from the framework source code that register and initialize the Extension attribute
vuquangchien
 
Posts: 3
Joined: Wed Jun 06, 2012 8:26 am

Postby mxenia » Tue Oct 08, 2013 7:48 pm

Hello to all,
i have purchased recently the sdk 10.0 and i am try to include the data compare and schema compare functionality from the sdk to an existing functionality.

Without adding any code and just the reference to the target dll (sqlcompare engine), the code is not compiled and the error is:

InternalXmlHelper.vb(9,6): error BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'. [C:\\QCS Projects\\Current\\VS Projects\\SCToolkit.InternalBuild\\SCToolkit.InternalBuild.Win.Client\\SCToolkit.InternalBuild.Win.Client.vbproj]

If i remove the reference from the RedGate.SQLCompare.Engine, the code is compiled as expected.

I have try to run the sample code and i don't faced the same issue. The strange is that i checked that in the sample solution the targeted framework is the .NET 4.0. The same framework is used for the my own application. I believe that i faced the above issue due to some licensing issue.

I would appreciate any help/advice of how to overcome the specific issue (if the problem is occurred due to framework is not an acceptable solution the downgrade to older framework since the application shared projects that cannot be downgraded).

Thank you in advance,
Xenia
mxenia
 
Posts: 1
Joined: Tue Oct 08, 2013 7:19 am

Downgrade to .net 2.0?

Postby conquistadorst » Fri Jan 03, 2014 3:32 pm

Downgrade to .net 2.0? From 2005? Are you serious?

The irony is we were considering upgrading SDK8 to SDK10, and this was NOT an issue in SDK8. What is this, a new feature?
conquistadorst
 
Posts: 7
Joined: Fri Aug 28, 2009 2:25 pm

Re: Downgrade to .net 2.0?

Postby conquistadorst » Tue Jan 14, 2014 2:25 pm

conquistadorst wrote:Downgrade to .net 2.0? From 2005? Are you serious?

The irony is we were considering upgrading SDK8 to SDK10, and this was NOT an issue in SDK8. What is this, a new feature?


Just an update to this post, Redgate fixed this issue in the latest release which can be obtained here:

ftp://support.red-gate.com/patches/SQLC ... 225463.exe
conquistadorst
 
Posts: 7
Joined: Fri Aug 28, 2009 2:25 pm


Return to SQL Comparison SDK 10

Who is online

Users browsing this forum: No registered users and 0 guests