License Problem for C# Console App

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Posts: 2
Joined: Wed 04 Dec 2013 21:35

License Problem for C# Console App

Post by colm » Mon 26 May 2014 16:02

I cannot run an install for a C# Console App using dotConnect. The error is
Unable to install or run the application. The application requires that assemply Devart.Data.PostgreSql Version be installed in the Global Assembly Cache (GAC) first
I tried following the licensing instructions here ... nsing.html but it does not work.

When I run the License Information in the Tools menu, there are no errors. In other words... "The project has the correct licenses.licx file". The licenses.licx file is in the of the project, it is an Embedded Resource (this was default):

Contents of licenses.licx:
Devart.Data.PostgreSql.PgSqlConnection, Devart.Data.PostgreSql

The app.config looks like this..
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on Entity Framework configuration, visit -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<add name="sotestEntitiesConnectionString" connectionString="metadata=res://RelevantSiteDirectMigrate/sotestModel.csdl|res://RelevantSiteDirectMigrate/sotestModel.ssdl|res://RelevantSiteDirectMigrate/sotestModel.msl;provider=Devart.Data.PostgreSql;provider connection string=" **** data removed **** Persist Security Info=True;Initial Schema=public"" providerName="System.Data.EntityClient" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameter value="v11.0" />
<provider invariantName="Devart.Data.PostgreSql" type="Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServices, Devart.Data.PostgreSql.Entity, Version=, Culture=neutral, PublicKeyToken=09af7300eec23701" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="" newVersion="" />


What is going wrong!?!

Devart Team
Posts: 2192
Joined: Wed 02 Nov 2011 09:44

Re: License Problem for C# Console App

Post by Pinturiccio » Tue 27 May 2014 14:52

The described issue is not connected with licensing. For solving the issue, right click your project in Solution Explorer and then click Properties. When the Project Designer appears, click the Publish tab. In the Install Mode and Settings section click the Application Files button, assign the Include publish status to all Devart assemblies, and rebuild your application.

Post Reply