invalid license problem
invalid license problem
I have run across a problem which I'm sure others have...
I have a console application, which is a host server for remoting, which uses version 2.55.27.0 of the driver. The application previously used an older version of the driver (1.85) without problems. I have embedded the license information as a resource as described in the documentation and even copied the licenses.licx and .lcenses file to the same folder as the application, but it just does not work... all I get is an 'invalid license' exception.
What would still be causing this exception? We paid good money for this library, but it is useless to us if our hands are tied like this.
I have a console application, which is a host server for remoting, which uses version 2.55.27.0 of the driver. The application previously used an older version of the driver (1.85) without problems. I have embedded the license information as a resource as described in the documentation and even copied the licenses.licx and .lcenses file to the same folder as the application, but it just does not work... all I get is an 'invalid license' exception.
What would still be causing this exception? We paid good money for this library, but it is useless to us if our hands are tied like this.
Check that *.licenses resource is present in compiled assembly.
Check that licenses.licx is included in your project.
What version of Visual Studio do you use?
Specify your hardware architecture: x32 or x64?
What version of PostgreSQLDirect .NET do you use (Std, Pro)?
Do you write class library (dll), executable application (exe), web project,
web project with dynamically compiled sources?
Do you compile your project in Visual Studio environment or using command line?
Check that licenses.licx is included in your project.
What version of Visual Studio do you use?
Specify your hardware architecture: x32 or x64?
What version of PostgreSQLDirect .NET do you use (Std, Pro)?
Do you write class library (dll), executable application (exe), web project,
web project with dynamically compiled sources?
Do you compile your project in Visual Studio environment or using command line?
I've checked everything that you mentioned. I do have the licenses.licx included, however I am somewhat unclear on the *.licenses being in the compiled assembly as a resource - can that be checked with the MSIL Disassembler.. I do see where a .LICENSES file is created in the obj directory, so I would assume it is being created.
As far as your other questions - I am using Visual Studio 2005 on a x32 architecture machine. The version of the PostgreSQLDirect.NET is version 2.55.27.0, standard version. The code using the driver is a class library that is loaded for use in remoting.
I am also not clear on the use of licenses.config file. Since I am doing remoting I would imagine that I would have to refer to the executable that is hosting my dll in the config file.
My apologies for the questions, but the help documentation is really not all that clear in terms of getting the licensing to work properly. A How-To on the subject would be really helpful.
As far as your other questions - I am using Visual Studio 2005 on a x32 architecture machine. The version of the PostgreSQLDirect.NET is version 2.55.27.0, standard version. The code using the driver is a class library that is loaded for use in remoting.
I am also not clear on the use of licenses.config file. Since I am doing remoting I would imagine that I would have to refer to the executable that is hosting my dll in the config file.
My apologies for the questions, but the help documentation is really not all that clear in terms of getting the licensing to work properly. A How-To on the subject would be really helpful.
License not valid
I get sometimes (maybe once in 10000 HTTP requests) error "License not valid. Please view "Licensing" topic in PostgreSQLDirect .NET documentation for details or contact Core Lab technical support". The problem occurs in production server only. I use VS 2005, Corelab 3.2 provider for .Net 2.0 and Win2003 SE. VS solution contains about 40 projects, all of them using Corelab driver. After the error I can only restart IIS since all the following requests will produce the same error. I never used the mentioned licenses.licx but according to the documentation this error says that the license is wrong, but exists.
Yes, .Net 2.0 Corelab driver is installed on the production server. Windows lists assemblies Corelab.Data 4.2.14.0, Corelab.PostgreSql 3.20.17.0 and 2 more.
I think that the problem occurs in different projects. They handle connections in a similar manner.
I doubt that it will be possible to reproduce the problem since it happens so rarely.
OK, I thought that you might have some obvious reason. I will check a little more and will contact you again.
I think that the problem occurs in different projects. They handle connections in a similar manner.
I doubt that it will be possible to reproduce the problem since it happens so rarely.
OK, I thought that you might have some obvious reason. I will check a little more and will contact you again.
I can now report that the same problem happens when using direct-to-hardware Windows (without VMware). Out multi-CPU IIS crashes 10 - 20 times a day. Single CPU system never failed (but runs very slowly). I would appreciate some help since our users get impatient. Is it possible to use a simpler licensing system?
Tonight we removed a switch between our web and database server. It seems that the switch was losing packets. After the change no error occurred. Maybe it is too early to conclude, but we believe that this was the cause of the problem. Therefore, multi-CPU IIS + packets lost = licence invalid. If the equation proves invalid, I will give you a report.
Besides, the faulty switch initiated hundreds of "idle in transaction" processes that decreased the performance of the application by at least 10 times.
Besides, the faulty switch initiated hundreds of "idle in transaction" processes that decreased the performance of the application by at least 10 times.