Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

'System.NullReferenceException' ocured in Oracle.DataAccess.dll

632869Apr 8 2008 — edited Aug 5 2008
hi all,

i using C++.net to build an application to access my oracle database. i'm using oracle express edition 10g. i can connect to the database which is in my pc, when the code is running on my pc.
but when i take my application to another pc in the same network my application crashes when connecting to the database.
it says
"
An unhandled exception of type 'System.NullReferenceException' occurred in Oracle.DataAccess.dll

Additional information: Object reference not set to an instance of an object.
"

i have also put the oracle.dataaccess.dll in my .exe folder.

my application crashes at the first line;

OracleConnection^ con1 = gcnew OracleConnection();
con1->ConnectionString = "User Id=Air;Password=*****;Data Source=10.8.148.211:1521/XE;";

but when i install oracle express edition 10g on that machine i am able to connect to the remote database.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2008
Added on Apr 8 2008
4 comments
2,808 views