Page 1 of 1
License exception - feature not supported
Posted: Tue 20 Mar 2018 20:46
by jphelan
Trying to get some clarification - I am using .NET Core 2.0 in my MVC project (Visual Studio 2017) with the trial license of dotConnect for Postgresql.
In startup.cs I have the context added to my services:
Code: Select all
services.AddDbContext<MyContext>(opts => opts.UsePostgreSql(connectionString));
But when I try something like this:
I receive the error in the subject line.
That said, when I navigate to Tools > PostgreSQL > License Information, the prompt tells me I do not need a license because the project does not have a reference to Devart.Data.Postgresql included in the project. I used the installer when I downloaded the trial license.
Is this currently not supported, or have I messed up the install for the license?
Re: License exception - feature not supported
Posted: Wed 21 Mar 2018 18:20
by Shalex
A current implementation of dotConnect for PostgreSQL includes two versions of assemblies:
1) the .NET Framework Devart.* assemblies which are shipped with installation:
* assemblies are created in C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\ (by default)
* licensing approach is described at
https://www.devart.com/dotconnect/postg ... nsing.html
2) the .NET Standard (.NET Core) Devart.* assemblies which are available via NuGet:
* you can download packages from
https://www.nuget.org/packages/devart.d ... sql.efcore (or
https://www.nuget.org/packages/devart.d ... resql.linq )
* licensing approach is described at
https://www.devart.com/dotconnect/postg ... ndard.html
The "Feature is not supported." exception is generated by .NET Standard Devart.* assemblies, it means that runtime cannot find a license file (or license key).
Re: License exception - feature not supported
Posted: Thu 22 Mar 2018 22:41
by jphelan
Thanks for your response.
I went back, uninstalled the trial and reinstalled it. I then added the EFCore package with NuGet. I have the license .key file in my ProgramData folder as well.
That said, I am still receiving the 'does not have a reference Devart.Data.PostgreSQL' message despite using the Devart.Data.PostgreSQL.Entity.PgSqlDbContextOptionsBuilder class in my Startup.cs file (the project builds successfully with it). Do I need an explicit reference in my code?
For the record, when I debug the code I get the same 'feature not supported' message when I try to pull data. The .key file doesn't seem to getting recognized.
Re: License exception - feature not supported
Posted: Fri 23 Mar 2018 12:34
by Shalex
1. Please replace your C:\ProgramData\Devart\dotConnect\License\devart.data.postgresql.key with the one we just sent to your email. It resets 30 days trial period.
2. Refer to
viewtopic.php?f=3&t=36044. Does this help?
Re: License exception - feature not supported
Posted: Mon 26 Mar 2018 22:39
by jphelan
Would you mind sending that email again? I did not receive it - it's likely something on my end, sorry for the hassle!
As for the other forum post, adding the key file to the project and a reference to the connection string nets me the same 'feature not supported' message.
When I looked under Windows > Debug > Modules, I found that I had no references there to Devart.Data.dll and Devart.Data.Postgresql.dll. That lines up with what the license tool tells me - that no reference is included.
I'm missing something here and I feel like it's obvious. I'm using Devart libraries (the code snippets in my first post) in my code and they're compiling just fine - how do I get the compiler on board?
Thanks again for your help.
Re: License exception - feature not supported
Posted: Tue 27 Mar 2018 19:39
by Shalex
jphelan wrote: ↑Mon 26 Mar 2018 22:39
Would you mind sending that email again? I did not receive it - it's likely something on my end, sorry for the hassle!
1. Done. If you do not receive it, contact us via
https://www.devart.com/company/contactform.html.
jphelan wrote: ↑Mon 26 Mar 2018 22:39When I looked under Windows > Debug > Modules, I found that I had no references there to Devart.Data.dll and Devart.Data.Postgresql.dll. That lines up with what the license tool tells me - that no reference is included.
2. Please upload a small test project for reproducing to
ftp://ftp.devart.com (credentials: anonymous / yourEmail).
Re: License exception - feature not supported
Posted: Tue 27 Mar 2018 21:44
by jphelan
Thank you for your continued support on this - I really appreciate it.
I have a small test project setup that runs into the same error but I've found I cannot log into the ftp site.
Credential pairs I've tried:
anonymous / [this account's email]
anonymous / [blank]
[this account's email] / [blank]
[this account's email] / anonymous
Re: License exception - feature not supported
Posted: Wed 28 Mar 2018 14:18
by Shalex
We will check permission settings on our FTP server.
Could you please upload your test project to some other file exchange server?
Re: License exception - feature not supported
Posted: Wed 28 Mar 2018 23:20
by jphelan
https://www.dropbox.com/s/3vj6zb79pps3b ... n.zip?dl=0
Please let me know if that doesn't work.
The project uses the public schema under postgres with table 'testtable' and column 'numbercolumn' (integer). User/password is under the connection string as well as the license path (local to my machine atm).
I receive the error message in TestTableRepository.cs @ line 19 (or line 15, if it's uncommented).
Thanks again!
-jphelan
Re: License exception - feature not supported
Posted: Thu 29 Mar 2018 17:39
by Shalex
The key used in your project is outdated. Please try this one:
https://www.devart.com/pub/devart.data. ... ql.key.zip . It works with your project in our environment. Notify us about the result.
Re: License exception - feature not supported
Posted: Thu 29 Mar 2018 19:59
by jphelan
That was it!
Thanks again for your assistance.