License Problem for C# Console App

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
colm
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 7.3.146.0 be installed in the Global Assembly Cache (GAC) first
I tried following the licensing instructions here http://www.devart.com/dotconnect/postgr ... 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"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<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" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="Devart.Data.PostgreSql" type="Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServices, Devart.Data.PostgreSql.Entity, Version=7.3.146.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</providers>
</entityFramework>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>

</configuration>

What is going wrong!?!

Pinturiccio
Devart Team
Posts: 2420
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