N
.Net Developer
I'm trying to connect to Oracle database in the asp.net app. But keep
getting the error:
"ORA-12154: TNS: could not resolve service name at
System.Data.OracleClient.DBProjectPool.GetObject(Boolean&isInTransaction) at
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledconnection ..
"
==============
Here's the connection string I'm using:
dim sConn as string = "Data Source=DSNName;User
ID=username;Password=password;Integrated Security=SSPI"
Code to connect to the database:
imports system.data
imports system.data.OracleClient
imports system.configuration
dim objConn as OracleConnection = new OracleConnection
objConn.ConnectionString = sConn 'as defined above
Try
objConn.open
catch ex as Exception
response.write(ex.Tostring())
finally
objconn.dispose
End Try
==============
Also, I have given full control to the ASPNET account and the IUSR and the
IWAM accnt in the Oracle bin folder.
Can someone point out what's going wrong?
Thanks
getting the error:
"ORA-12154: TNS: could not resolve service name at
System.Data.OracleClient.DBProjectPool.GetObject(Boolean&isInTransaction) at
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledconnection ..
"
==============
Here's the connection string I'm using:
dim sConn as string = "Data Source=DSNName;User
ID=username;Password=password;Integrated Security=SSPI"
Code to connect to the database:
imports system.data
imports system.data.OracleClient
imports system.configuration
dim objConn as OracleConnection = new OracleConnection
objConn.ConnectionString = sConn 'as defined above
Try
objConn.open
catch ex as Exception
response.write(ex.Tostring())
finally
objconn.dispose
End Try
==============
Also, I have given full control to the ASPNET account and the IUSR and the
IWAM accnt in the Oracle bin folder.
Can someone point out what's going wrong?
Thanks