I added a reference (a component .dll) in my website project and tried to use the component. This component has a reference to Oracle.DataAccess (Version=10.1.0.400). But whenever I tried to access a function in the component that accessing the database.
Runtime error occurrs.
Error:
Could not load file or assembly 'Oracle.DataAccess, Version=10.1.0.400, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:
0x80131040)
I have added the Oracle.DataAccess reference in my website project but with different version (Version=10.2.0.100).
Is the version significant? What should I do to remove this error? Btw, I'm using OracleXE and I think the component used different version.
Hope someone will guide me to fixing this error. Cheers.
Check Oracle.DataAccess version in folder WINDOWS\assembly\. If the version is not 10.1.0.400, you need to add this version. Or, you have to change the reference in your component component.dll project to refer to version 10.2.0.100 if you have the right
to do it.
"Object reference not set to an instance of an object"
I've checked in Windows\assembly and there are no Oracle.DataAccess. But its in oraclexe\app\oracle\product\10.2.0\server\BIN. I'll try to download the 10.1.0.400 in the oracle website and try adding it.
None
0 Points
4 Posts
Could not load file or assembly Oracle.DataAccess
Dec 23, 2008 08:50 AM|legendlink|LINK
Hi,
I added a reference (a component .dll) in my website project and tried to use the component. This component has a reference to Oracle.DataAccess (Version=10.1.0.400). But whenever I tried to access a function in the component that accessing the database. Runtime error occurrs.
Error:
Could not load file or assembly 'Oracle.DataAccess, Version=10.1.0.400, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)I have added the Oracle.DataAccess reference in my website project but with different version (Version=10.2.0.100).
Is the version significant? What should I do to remove this error? Btw, I'm using OracleXE and I think the component used different version.
Hope someone will guide me to fixing this error. Cheers.
Contributor
4830 Points
1349 Posts
Re: Could not load file or assembly Oracle.DataAccess
Dec 23, 2008 10:57 AM|che3358|LINK
Check Oracle.DataAccess version in folder WINDOWS\assembly\. If the version is not 10.1.0.400, you need to add this version. Or, you have to change the reference in your component component.dll project to refer to version 10.2.0.100 if you have the right to do it.
None
0 Points
4 Posts
Re: Could not load file or assembly Oracle.DataAccess
Dec 24, 2008 10:40 PM|legendlink|LINK
Thanks for your reply.
I've checked in Windows\assembly and there are no Oracle.DataAccess. But its in oraclexe\app\oracle\product\10.2.0\server\BIN. I'll try to download the 10.1.0.400 in the oracle website and try adding it.
I'm not sure if im downloading the right file. I found it here: http://www.oracle.com/technology/software/tech/windows/odpnet/index.html
And downloaded the "Oracle 10g ODAC 10.1.0.4.0" is this the correct file?
None
0 Points
4 Posts
Re: Could not load file or assembly Oracle.DataAccess
Dec 26, 2008 10:01 AM|legendlink|LINK
Hi,
I downloaded the ODAC and installed it, Its now connected to the oracle successfully. Thanks!
None
0 Points
4 Posts
Re: Could not load file or assembly Oracle.DataAccess
Dec 31, 2008 04:23 AM|legendlink|LINK
After restarting my PC, now it does not connect to oracle. When it attempts to connect to oracle, error occurred. (ORA-24315 Illegal Attribute Type).
I've included the new Oracle.DataAccess in my Project reference.
What should I do to make it work? I've search on the net and there are no results.
Member
20 Points
28 Posts
Re: Could not load file or assembly Oracle.DataAccess
Mar 24, 2009 06:41 PM|crosscompiler|LINK
Wow! Thanks for the tip on checking WINDOWS\assembly
I found a conflict in there on one of my servers. Removed the unneeded Oracle entries and that resolved our ODP.NET issue.
Thanks again!
None
0 Points
1 Post
Re: Could not load file or assembly Oracle.DataAccess
Jan 04, 2017 07:46 AM|jayantha kumara|LINK
Could not load file or assembly Oracle.DataAccess