Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Oracle
I want to make an asp.net C# application where database is Oracle Express 10g.
Now I cant make a connection with oracle in visual studio 2010. I am facing a problem
 
ORA-12154: TNS: Could not resolve the connection identifier specified
 
My connection string:
 
<add name="ConStr2" connectionString="Data Source=Rashed ;User ID=TestDB;Password=sa123" providerName="System.Data.OracleClient"/>
 
 
Windows
Windows:7
64-bit Operating System
 
Database Version:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
 
TNS
XE=
  (DESCRIPTION=
    (ADDRESS=
      (PROTOCOL=TCP)
      (HOST=Rashed)
      (PORT=1521)
    )
    (CONNECT_DATA=
      (SERVER=dedicated)
      (SERVICE_NAME=XE)
    )
  )
 

NB: My oracle db is running. I am using visual studio 2010
 
Thanks
Rashed
Posted 28-Nov-12 0:32am
(unknown member)
Edited 9-Dec-12 23:47pm
v2

1 solution

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

  Print Answers RSS
0 CHill60 320
1 Sarvesh Kumar Gupta 238
2 Sergey Alexandrovich Kryukov 163
3 OriginalGriff 163
4 DamithSL 153


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid