'What will be the LDAP connection string for .net in web.config file for Oracle Data Provider?

I am new to connect LDAP connection for Oracle DB via .Net. I have tried it several times in web.config but getting error - Oracle.DataAccess.Client.OracleException ORA-12537: TNS:connection closed

My connection string is -

connectionString="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHostName)(PORT=123)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyServiceName)));USER ID = MyUserID; PASSWORD = MyPassword;" providerName="Oracle.DataAccess.Client"

I have searched several sites but there is no one connecting via web.config.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source