Click here to Skip to main content
15,886,629 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When I connect to oracle database from my client using WinApp it works well

but if I use The same code in asp.net it gives me this ERROR

ORA-12638: Credential retrieval failed at



Please any help?

What I have tried:

I Changed - SQLNET.AUTHENTICATION_SERVICES= (NTS) To: - SQLNET.AUTHENTICATION_SERVICES= (NONE) in sqlnet.ora.

but not working
Posted
Updated 5-Jan-19 21:48pm
Comments
Wendelius 6-Jan-19 3:06am    
Do you use Windows or Oracle authentication?
Mohammed Elkholy 6-Jan-19 3:32am    
No I use the database user id and password
AnkushK1 6-Jan-19 3:31am    
Can you show how you are making connection to oracle in code?
Mohammed Elkholy 6-Jan-19 3:35am    
OracleConnection CN = new OracleConnection("Data Source=pay;User ID=paym;Password=paym;Unicode=True");

OleDbConnection CN = new OleDbConnection("Provider=OraOLEDB.Oracle.1;Password=paym;Persist Security Info=True;User ID=paym;Data Source=pay");

the same problem with the oracleconnection and oledbconnection

1 solution

Few things to check or do:

  • Check Windows Event Log for further information
  • For the IIS service, check what account you're using to run the service (in Control Panel). Is that account able to communicate to the database server
  • Ensure that you have changed the correct SQLNET.ORA, the one that IIS uses if it has a different Oracle client installation
  • Use SQLNET tracing to find more information, for an example, see http://www.dba-oracle.com/t_sql_net_tracing.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900