licenses.licx unable to resolve error
bdill
Posts: 42 Bronze 2
I've started from the Web Help page: http://help.red-gate.com/help/SQLCompar ... /index.htm
When I got the error:
I found this page: C:\Program Files\Red Gate\SQL Comparison SDK 10\Assemblies\SQL Compare
I've followed pretty much everything to the T except my DLLs are installed in C:\Program Files\Red Gate\SQL Comparison SDK 10\Assemblies\SQL Compare rather than the suggested C:\Program Files\Red Gate\SQL Data Compare <version>\ and I have my references set accordingly.
My licenses.licx file contains one line:
http://www.flickr.com/photos/9431737@N08/7218321726/in/photostream
http://www.flickr.com/photos/9431737@N0 ... hotostream
When I got the error:
Unable to resolve type 'RedGate.SQLCmpare.Engine.Database,RedGate.SQLCompare.Engine'
I found this page: C:\Program Files\Red Gate\SQL Comparison SDK 10\Assemblies\SQL Compare
I've followed pretty much everything to the T except my DLLs are installed in C:\Program Files\Red Gate\SQL Comparison SDK 10\Assemblies\SQL Compare rather than the suggested C:\Program Files\Red Gate\SQL Data Compare <version>\ and I have my references set accordingly.
My licenses.licx file contains one line:
RedGate.SQLCompare.Engine.Database,RedGate.SQLCompare.Enginebut it still gets the same error. It never prompts for my serial #.
http://www.flickr.com/photos/9431737@N08/7218321726/in/photostream
http://www.flickr.com/photos/9431737@N0 ... hotostream
Comments
The workaround is to compile one of the sample projects with the target framework version set to 2 in the csproj or vbproj file. This will allow the activation dialog to show so you can enter a serial number.
Once you have entered your serial number and activated, you can go on and compile the project you have built against .NET 4. Since the need to activate will be gone, you will not get an activation window and therefore won't get the error any more.
Back to my own project. I still get the same error as before. If I target .Net 2.0 on my project it builds and runs, but if I change the target back to .net 4.0 or 4.0 Client, it gives the same "Unable to resolve type..." error as before.
Is there any chance of getting the licensing client updated to .Net 4.0? And the sample projects with it? .Net 4.0 is a solid 2 years old now... 8)
When I target the .Net 4 Framework I only get this in the Output window: No Errors, warnings or messages in the Error list window.
When targeting the .Net 4 Framework Client profile I get these warnings and error:
http://www.flickr.com/photos/9431737@N0 ... hotostream
The System.Web warnings are expected since it is a Client profile... There is no inner exception that I can see. Right clicking on it doesn't present any menu items related to inner exceptions.
Just for shucks, I tried targeting .Net 3.0 and 3.5 Frameworks.
3.0 worked just fine (same as .Net Framework 2.0)
3.5 gave the same results as 4.0 - failed to build with no Errors, Warnings or Messages in the Error List window.
SDK does not support the .NET Client profile. It needs to be full .NET.
Maybe Visual Studio has eaten your homework... can you create a new project from scratch targeting 4.0 and add all of the code back in?
I am facing exactly the same problem as you were facing.
Can you please tell me how you managed to resolve it..??
I am in urgent need.
Please help.