EXCEPTION (System.Data.ProviderIncompatibleException) with EF5
Posted: Thu 25 Jul 2013 16:41
After migrating to EF5, some users are facing the following error when accessing to any DBContext of our solution:
Surprisingly, I am not facing this problems so the edmx files are the same, the dotConnect installed is the same (dcoracle77226pro.exe) and the configuration files/connection strings are the same.
Our customers upgrade dotConnect from previous versions facing sometimes this error:
http://forums.devart.com/viewtopic.php?f=1&t=21060
We solved deleting manually some empty dirs from GAC_MSIL as recommended.
Before arriving to that conclusion, I delete all Devart references, including Devart policies. That last step was not done with these troubled users relying on the Installer.
Have you ever faced this error before with an upgrade EF4-->EF5; FW4-->FW4.5? (I've found something in the forum with older versions)
I've read the documentation of the new release (http://forums.devart.com/viewtopic.php? ... ken#p93420) Is this description somehow related?...
Tomorrow I'll try deleting potentially harming old version Devart policies but any suggestion or best practice is welcome.
Code: Select all
System.Data.ProviderIncompatibleException: System.Data.ProviderIncompatibleException: The provider did not return a ProviderManifest instance. ---> System.TypeInitializationException: The type initializer for 'Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig' threw an exception. ---> System.ArgumentException: Token 0x02000001 resolves to the special module type representing this module.Parameter name: metadataToken.
Our customers upgrade dotConnect from previous versions facing sometimes this error:
http://forums.devart.com/viewtopic.php?f=1&t=21060
We solved deleting manually some empty dirs from GAC_MSIL as recommended.
Before arriving to that conclusion, I delete all Devart references, including Devart policies. That last step was not done with these troubled users relying on the Installer.
Have you ever faced this error before with an upgrade EF4-->EF5; FW4-->FW4.5? (I've found something in the forum with older versions)
I've read the documentation of the new release (http://forums.devart.com/viewtopic.php? ... ken#p93420) Is this description somehow related?...
Code: Select all
Entity Framework support
The config.Workarounds.UseInvariantProviderManifestToken configuration option (default value is False) is added to provide the possibility of returning the invariant string literal as the provider manifest token