【问题标题】:Getting ORA-12154: TNS:could not resolve the connect identifier specified error while connecting获取 ORA-12154: TNS:could not resolve the connect identifier specified 连接时错误
【发布时间】:2013-01-19 17:03:57
【问题描述】:

我正在使用 oracle 10g。我的操作系统是 64 位的。当我将我的 c# 控制台应用程序与 oracle 连接时,它连接成功。但是当我尝试将 oracle 与我的 asp.net 项目连接时,它显示无法解析连接标识符指定的错误。

【问题讨论】:

  • 每个项目的连接字符串都一样吗?

标签: asp.net .net c#-4.0


【解决方案1】:

您的 asp.net 项目的连接字符串可能需要修改。检查数据源、用户名和密码,确保在asp.net系统上正确。

【讨论】:

  • connectionString="Data Source= XE;User ID=abcd;Password=123456;Unicode=True" providerName="System.Data.OracleClient" 这样可以吗?
猜你喜欢
  • 2017-09-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多