Skip to content

OracleManaged Migrations fail with runtime Exceptions #890

Description

@cgibbons

When trying to migrate an oracle database with version 3.0, runtime exceptions occur. If using oraclemanaged the following exception occurrs

Unhandled Exception: System.TypeLoadException: Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at OracleInternal.ConnectionPool.PoolManager`3.CreateNewPRThreadFunc(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

This is using the oracle beta driver that supports dotnet core.

If using the Devart DotConnect driver, it fails because it says it can't find the correct version of Devart.Data, even though I can see it in the output directory.

To repro this is a netcoreapp2.1 project with the following dependencies

<ItemGroup>
        <!--<PackageReference Include="Oracle.ManagedDataAccess" Version="12.2.1100" />-->
        <PackageReference Include="Oracle.ManagedDataAccess.Core" Version="2.12.0-beta2" />
        <PackageReference Include="FluentMigrator" Version="3.0.0" />
        <PackageReference Include="FluentMigrator.Console" Version="3.0.0" />
        <PackageReference Include="FluentMigrator.Runner" Version="3.0.0" />
        <PackageReference Include="FluentMigrator.Runner.Oracle" Version="3.0.0" />
</ItemGroup>

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions