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!

ODP.NET - installation problem - TNS names

user457002Jan 29 2010 — edited Feb 1 2010
Hello,

Trying to run my ASP.NET application using ODP.NET

I installed ODAC11.1.0.7.20 - Oracle Universal Version, into folder D:\odp.net.

Copied tnsnames.ora from c:\oracle\ora90\network\admin to
D:\odp.net\cs\product\11.1.0\client_1\Network\Admin

On running the appl
(http://www.oracle.com/technology/obe/hol08/dotnet/getstarted-c/getstarted_c_otn.htm)
i am get the following error...

Server Error in '/Asset_ver' Application.
--------------------------------------------------------------------------------
ORA-12154: TNS:could not resolve the connect identifier specified
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: Oracle.DataAccess.Client.OracleException:
ORA-12154: TNS:could not resolve the connect identifier specified

Source Error:

Line 23: String oradb = "Data Source=netdb2;User Id=uclient;Password=state;";
Line 24: OracleConnection conn = new OracleConnection(oradb); // C#
Line 25: conn.Open();
Line 26: OracleCommand cmd = new OracleCommand();
Line 27: cmd.Connection = conn;

Where could the problem be?

Do you need to execute the SQL Scripts?
Pl help

csb

Edited by: user457002 on 29 Jan, 2010 3:17 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2010
Added on Jan 29 2010
3 comments
4,288 views