Solved

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

Posted on 2014-02-21
5
1,463 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
[X]
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
  • 2
  • 2
5 Comments
 
LVL 77

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 77

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

726 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