Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

706 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

20 Experts available now in Live!

Get 1:1 Help Now