Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to connect oracle to .net application with oracle listener.
my listener name "Topup" where server information, database name are save and I want to call this listener to our connection string.

string str = "Data Source=Topup;Persist Security Info=True;password=test;user ID=test providerName="System.Data.OracleClient;"


In my connection string I give data source name is my listener name, but I unable to connect.

Its greatful for me, if any body give me correct code connection through listener.
Thanks in advance
regards,
ravi
Posted
Updated 9-Jun-11 3:17am
v3
Comments
Kschuler 9-Jun-11 9:17am    
What error message are you getting?
Ravi Sharma 2 9-Jun-11 9:36am    
I got TNS: that cannot identift the connection

I don't use oracle a lot, but none of the examples on connectionstrings.com[^] use the providerName the way you have it. Also, your connection string doesn't have a closing double quote...so you could you make sure you pasted it correctly. You've got something funky with the quotes around System.Data.OracleClient.
 
Share this answer
 
Comments
Ravi Sharma 2 13-Jun-11 4:16am    
Thanks alot, this Link solved my problem................

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900