Could not load file or assembly ‘Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342’ or one of its dependencies

This week after successful migration of all the existing application of our client from Microsoft BizTalk Server 2013 to Microsoft BizTalk Server 2016 test environment we started testing our application’s.

During our testing with the WCF-OracleDB adapter we got the below error.

Could not load file or assembly ‘Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342’ or one of its dependencies

After searching a lot we were unable to find the version required. As a reason we manage to fix the problem using the Assembly binding re-direction. Added the following to both 32-bit and 64-bit machine config file

  • C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config
  • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config

Here we are re-directing the installed Oracle.DataAccess in the environment to the version which is required by the Oracle adapter.

OracleDataAccess

Please do leave a reply in comment section below in case any questions.

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s