hi friends,
i am using windows application,
that application i have connect to oracle databse.
i have create TNS name in tnsnames.ora file
PREPROD.BTSINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = preprod)
)
)
then i am creating connection string in app.config file.
<add key="ConStr_Orc" value="Provider=OraOLEDB.Oracle;Data Source=prod;User Id=id;Password=pass;" />
Then i will run the application,provide the OA-12154 TNS could not resolve service name .Error
but i am connect in sql editor
username id
password pass
hoststring prod
it's working correct
please please help me.How to slove the problem.
it's very very urgent.