I've been wanting to try out the SQL Comparison SDK, and have been having issues.
I reference the components as per the documentation and it compiles fine.
When I execute the code, it gets to any Redgate object (such as Database) that invokes licensing, and it pops up the Licensing window (the one where you can activate the product, or "skip" it for a 14 day trial).
I choose skip and immediately get the below error:
[code]Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: format
at System.String.Format(IFormatProvider provider, String format, Object arg
nseContext context, Type type, Object instance, Boolean allowExceptions)
ext context, Type type, Object instance, Boolean allowExceptions, License& licen
se, String& licenseKey)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Program.Program.Main(String args)[/code]
I don't have a license to activate it (haven't decided if this is useful to code the API directly) but I just can't get the SDK to work by using the SKIP option.
I've tried Windows XP, Windows 7, formatted and resintalled a dev computer, tried every single .net Framwork and service pack, multiple versions of Visual Studio 2010/2008. The above example was written in notepad to remove possible VS issues. I've compiled under .net 2.0, 3.0, 3.5, 4.0.
I've tried adding licenses.licx files and played with it, even manually licensing the code itself.
But no matter what, the above error persists whenever it touches a object with the Licensing attribute on it.
I'm sure I've done massive overkill in debugging this. I've looked through all the requirements for MDAC, .net, OS, that is listed for this product, but I cannot find a way to make it work.
I'm sure it's something simple that's I've screwed up, I'd love to know what it is.