Page 1 of 1

Exception at runtime

Posted: Thu 13 Oct 2022 06:41
by hokenh
After updating "dotConnect for Oracle" from version 9.x to 10.0 I'm getting an exception at runtime:

Exception ocurs at: System.Data.EntityCommandCompilationException: 'An error occurred while preparing the command definition. See the inner exception for details.'

Inner Exception message:
"Inheritance security rules violated by type: 'Devart.Common.Entity.ei'. Derived types must either match the security accessibility of the base type or be less accessible."

Source: "Devart.Data.Oracle.Entity.EF4"

Stacktrace: at Devart.Common.Entity.ew.c()

at Devart.Data.Oracle.Entity.OracleEntityProviderServices.CreateDbCommandDefinition(DbProviderManifest baseProviderManifest, DbCommandTree commandTree)

at System.Data.EntityClient.EntityCommandDefinition..ctor(DbProviderFactory storeProviderFactory, DbCommandTree commandTree)

Tried to remove and add references a dozen times, and I'm still stuck, what should I do to fix this?

Thank you.

Re: Exception at runtime

Posted: Thu 13 Oct 2022 10:50
by Shalex
You are working with Entity Framework 4 and .NET Framework 4.8, aren't you?

We have reproduced the issue and are investigating it. We will notify you about the result.

Re: Exception at runtime

Posted: Thu 13 Oct 2022 11:00
by hokenh
I'm using EF4 and .Net Framework 4.7.2..

Thank you.