Exception at runtime

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
hokenh
Posts: 2
Joined: Thu 13 Oct 2022 06:30

Exception at runtime

Post by hokenh » Thu 13 Oct 2022 06:41

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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Exception at runtime

Post by Shalex » Thu 13 Oct 2022 10:50

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.

hokenh
Posts: 2
Joined: Thu 13 Oct 2022 06:30

Re: Exception at runtime

Post by hokenh » Thu 13 Oct 2022 11:00

I'm using EF4 and .Net Framework 4.7.2..

Thank you.

Post Reply