Solved

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

Posted on 2014-02-21
5
1,353 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now