"This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded." Error While Registering Policy.2.*.Oracle.Web.dll

(Doc ID 2362755.1)

Last updated on FEBRUARY 23, 2018

Applies to:

Oracle Providers for ASP.NET - Version 12.1.0.2 and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)

Symptoms

When registering Policy.2.*.Oracle.Web.dll from 12.2.0.1 into GAC using OraProvCfg.exe, following error is observed.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms