There are many reasons for this error, you can try below solutions:
- You might have to set the application pool for your site in IIS to allow 32bit applications if you're using a 32-bit Oracle connector (even on a 64-bit system). The application pool is 64-bit by default. Right-click on the Application Pool > Advanced Settings > 'Enable 32-bit Applications' set that to true.
- You can also check the oracle Data Provider for .NET, Managed Driver Assemblies. The Oracle.ManagedDataAccess.dll assembly provides two namespaces: The Oracle.ManagedDataAccess.Client namespace contains ODP.NET classes and enumerations for the client-side provider.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.