Link to home
Start Free TrialLog in
Avatar of dyarosh
dyarosh

asked on

Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies error

I have an application that was developed in VS 2010 that was running fine in debug mode on my local machine.

I just had VS 2013 installed and now I get the "Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies" error if I try and debug in VS 2010.  

I get the same error if I try and debug in VS 2013.  

The Oracle.DataAccess.dll file exists in the bin folder of the project and is version 4.112.3.0.  The same file (same version) exists in C:\Windows\Microsoft.Net\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.3.0_89b483f429c47342.

The VS 2013 install obviously changed something but I don't know what.  Any ideas on how to fix this problem?
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Take a look in the Reference node of Solution Explorer and see if any of the dll's have an informational icon next to the offending dll. If there is then place your cursor on it and right click and remove it. The add the dll back in by adding a reference to the project.
Avatar of dyarosh
dyarosh

ASKER

None of the DLLs in Reference have an information icon next to them.
You state, "I just had VS 2013 installed and now I get the "Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies" error if I try and debug in VS 2010.", so are you saying that it no longer is working in VS 2010 as well as VS2013?
Avatar of dyarosh

ASKER

That is correct.  I cannot debug under VS 2010 or VS 2013.  If I deploy my application to a web server, the application runs without any errors.
Well then I am at a lost seeming installing VS 2013 will not interfere with other VS install, they all can coexist.

When you opened the project in VS 2013 did it go through a upgrade process? if it did, did it have any errors? Are you opening this upgraded project in VS 2010?
Avatar of dyarosh

ASKER

The project did not go through an upgrade process when opened in VS 2013.  I am able to open the project in VS 2010 and VS 2013.
Do you have a copy of the project like in Version Control that was not open in VS 2013 and try to run that in VS 2010.
Avatar of dyarosh

ASKER

I did that and I still get the same error.  I think the problem is with Oracle Data Access Components.  It looks like I may now have two versions of that on my machine.  I am going to try and uninstall the newer version and see if that solves my problem.
Avatar of dyarosh

ASKER

I uninstalled both versions of the Oracle Data Access Components and reinstalled the version that was there before the VS 2013 install.  Still no luck.  I get the same error message.

I will be away for the next 5 days and will check back when I am back in the office.
ASKER CERTIFIED SOLUTION
Avatar of dyarosh
dyarosh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dyarosh

ASKER

I discovered the answer on my own.