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!

ORA-00351: Network Library: Name-Value premature end of string

user1523557Sep 2 2014 — edited Sep 2 2014

I am not able to established conenction to oracle throught oracle managed dataaccess client from my windows 7 64 bit machine.I am using asp.net 4.0 and visual studio 2013.

My web config has this settings or oracle:
  <oracle.manageddataaccess.client>
    <version number="4.121.1.0">
    <!--<dataSources>
        <dataSource alias="abc" descriptor="(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = asd.dd.dsd.va.us)(PORT = 1521))(CONNECT_DATA =(SERVICE_NAME = (SID=abc)))" />
      </dataSources>-->
      <settings>
        <setting name="TNS_ADMIN" value="D:\oracle\product\12.1.0\client_1\Network\Admin"/>
      </settings>
    </version>
</oracle.manageddataaccess.client>
I am  getting above error at con.open step of code :


string connString = "User Id=aaa;Password=ccc;Data Source=(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = asd.dd.dsd.va.us)(PORT = 1521))(CONNECT_DATA =(SERVICE_NAME = (SID=abc)));";
OracleConnection con = new OracleConnection();
con.Open();
oraCmd = con.CreateCommand();
oraCmd.CommandText = _strSQL;
OracleDataReader reader = oraCmd.ExecuteReader();

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2014
Added on Sep 2 2014
1 comment
5,321 views