DA For .NET reports a "valid license" error when compile

Hello,

when I compile a project on VS 2010 (even the examples), it reports the following error:

Exception occurred creating type 'RemObjects.DataAbstract.Linq.LinqRemoteDataAdapter,
RemObjects.DataAbstract.Linq, Version=6.0.55.957, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098’
System.ComponentModel.LicenseException: An instance of type ‘RemObjects.DataAbstract.Linq.LinqRemoteDataAdapter’ was being created, and a valid license could not be granted for the type ‘RemObjects.DataAbstract.BaseDataAdapter’. Please, contact the manufacturer of the component for more information

Any suggestions,

Thanks

make sure you have a .licx file in your project that lists the component(s) that you get license errors for, and that if the .licx contains version numbers for the dlls, they match the actual version of DA you build against.

Hi,

My licx file contains the following:

RemObjects.DataAbstract.Linq.LinqRemoteDataAdapter, RemObjects.DataAbstract.Linq

The file is already in the project folder, and I’ve copied in the bin folder as well, but the error still remains

Hello.

If it is not hard please double check all the steps described at the appropriate Q/A: http://wiki.remobjects.com/wiki/Server_FAQs_(RemObjects_SDK)#Why_do_I_get_an_.27An_instance_of_type_was_being_created.2C_and_a_valid_license_could_not_be_granted_for_the_type…27_exception_when_one_of_RemObjects_SDK_or_DataAbstract_classes_is_instantiated.3F .

If it doesn’t help, can you send us information about environment you are using (trial or full license, example with the problem)?

Thanks in advance.

Hi,
I’ve already checked this link, prior of starting this thread without success. The licx files are located in the project folder (one for client and one for server), their build action is set to “Embedded Resource” as it 's been suggested.

I’m using VS 2010 with the trial version of DA (RemObjects Data Abstract for .NET - 6.0.55.957 - Trial)

Even with the examples I’m getting this error!

Thanks

Hello.

Thanks for the environment. Unfortunately, I still can’t reproduce the problem on the clean virtual machine. Can you start Schema Modeler and say license info from there?

Thanks in advance.

gvlachopoulos, are you using obfuscation or are in any shape or form renaming your assembly after it is built? can you send to our support team a copy of the built assembly with all references, so we can have a look? thanx!

I’ve just opened the DASSQLClient project from the examples folder!
I’ve the registered version of DA for Delphi installed also. Is this a problem?

no, DA/Delphi should not affect this.

even if you;re just building the sample — having our support look at the .exe is the only next step i can think of to see why the licensing fails, so i’d appreciate of you could send a copy to support@ so we can have a look.

thanx!

The only file that has been created is the DA_SQLClient.vshost.exe and not the DA_SQLClient.exe as I was expecting. May I send this one?

Hm weird. How can you get an error at runtime without an actual .exe that can be run?

Or wait: do you get this error WHILE compiling? That’s weird too. Can you set msbuild logging to Detailed under Tools/Options/Projcts&Solutions, do a full rebuild, and send up (or post here) the log?

thanks for the response

My development PC is a Windows 7 Ultimate 64 bit. Ive 'tried on a windows XP 32 bit, and yes it compiled without any problem! So, is 64 bit environment causes this!

ok, so again — you get this error WHILE compiling, not later when running the app? i assume in Visual Studio 2010? can you send us the detailed MSBuild log?

Hello vlachopoulos.

Can you also send us your license storage (you can find it at “C:\Documents and Settings<UserName>\AppData\Roaming\RemObjects Software\Licenses” ). Also please remove all the files from the storage and import licenses again.

Thanks in advance