Click here to Skip to main content
12,765,284 members (37,252 online)
Rate this:
 
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 1:32am
Updated 10-Dec-12 0:47am
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
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100