2.5 trial licensing woes continue

2.5 trial licensing woes continue

Postby bradk » Mon 24 Apr 2006 20:15

I created an asp.net web service in Visual Studio 2005. I copied the following strong named components from a working machine to my machine and registered them:

CoreLab.PostgreSql.EnterpriseLibrary.dll (my build, strong named)
Microsoft.Practices.EnterpriseLibrary.Common.dll (strong named)
Microsoft.Practices.EnterpriseLibrary.Data.dll (strong named)
Microsoft.Practices.ObjectBuilder.dll (strong named)

I have references to these assemblies in my project.

I then created a licenses.licx and added it to my asp.net project:

CoreLab.PostgreSql.PgSqlConnection, CoreLab.PostgreSql, Version=, Culture=neutral, PublicKeyToken=09af7300eec23701

I then did a Build Runtime Licenses from the menu in Solution Explorer. I now have a Bin\App_licenses.dll assembly in my project.

When I run this project in debug mode and try to make a call I still get a licensing error:

CoreLab.PostgreSql.PgSqlException: License not valid. Please view "Licensing" topic in PostgreSQLDirect .NET documentation for details or contact Core Lab technical support.
at CoreLab.PostgreSql.PgSqlConnection.Open()
at Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection()
at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DbCommand command)
at Service.PaulsPre380Postgres() in c:\Visual Studio 2005\Projects\PostgresTest\App_Code\Service.cs:line 95

I did not run the installer for your product on this machine, since I'm trying to find the configuration which will work on our servers. The deployment docs state all I need is the GAC enabled component.

I'm trying really hard to make this work so we can make a purchase.
Posts: 34
Joined: Thu 20 Apr 2006 01:42

Postby Alexey » Wed 26 Apr 2006 05:42

You ought to have our product installed on the machine where you compile your project.
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby bradk » Wed 26 Apr 2006 22:02

yes, thank you that takes care of it after regenerating the app_licenses.dll for the project.
Posts: 34
Joined: Thu 20 Apr 2006 01:42

Return to dotConnect for PostgreSQL