Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2014-02-21
5
1,399 Views
Last Modified: 2014-03-18
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
Comment
Question by:fieldj
  • 2
  • 2
5 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39877207
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
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39877214
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
 

Accepted Solution

by:
fieldj earned 0 total points
ID: 39926577
We have been unable to resolve this so think we are going to have to abandon it for the moment.
0
 

Author Closing Comment

by:fieldj
ID: 39936348
Unable to find the answer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question