1 Reply Latest reply: Nov 29, 2012 6:30 AM by Tridus RSS

    ORA-12154: TNS:could not resolve the connect identifier specified

    826649
      Dear all,
      I have tsnname :
      MVC_Test =
      (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST =thanhnh-pc)(PORT = 1521))
      (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
      )
      )


      when I login by Pl/Sql Developer that is ok,

      when I connect to oracle on MVC 4 .net 2012(Windows 7 64 Bit) then error: ORA-12154: TNS:could not resolve the connect identifier specified

      <add name="OConnectionString" connectionString="Data Source= MVC_Test ;User ID=thanhnh;password=abc123" providerName="System.Data.OracleClient">

      Please help me