Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1972
  • Last Modified:

Oracle DataAccess Error - Object reference not set to an instance of an object

Hi all,

We have one user (a developer) who is experiencing issues with Oracle DataAccess based on whether they are setup as a local administrator on their PC or not.

I dont know the inner workings of Oracle, so im really struggling to figure this one out.  My research seems to suggest the problem is around the oracle.dataaccess.dll and maybe linked to the fact that they have Visual Studio 2012 installed.

If the user is configured as a local administrator on thier PC, and they try to run an application they get the following error:

Error 1
If they are NOT an administrator, the application runs (but they have other problems related to not being as admin - they need admin permissions).

I have a feeling it is something to do with Oracle trying to look at the incorrect version of the .dll.  I have read some things about accessing the GAC and getting Oracle to reference a different version of the .dll, but as this stuff does not mean a lot to me I am getting out of my depth.

Your help is appreciated!
0
fieldj
Asked:
fieldj
  • 2
  • 2
1 Solution
 
slightwv (䄆 Netminder) Commented:
It is true that ODP.Net is VERY picky about mixing versions.  However, I don't ever recall an object reference error because of mixing and matching ODP.Net versions.

You typically get the following for that:
Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client

I'll need to research that method a little more but it is likely an OS permission issue not a version issue.
0
 
slightwv (䄆 Netminder) Commented:
If you still think is may be a version issue, here is a previous question that talks about some work-arounds in the app.config file where the error I mentioned above was being seen.

http://www.experts-exchange.com/Database/Oracle/Q_27020817.html
0
 
fieldjAuthor Commented:
We have been unable to resolve this so think we are going to have to abandon it for the moment.
0
 
fieldjAuthor Commented:
Unable to find the answer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now