I am using the following code in both a windows app and an ASP.Net app:
Private m_cmd As System.Data.OleDb.OleDbCommand
Private m_con As System.Data.OleDb.OleDbConnection
dim connectionString as String
connectionString = "Provider=MSDAORA.1;User ID=myId;Data Source=PRD1;"
Try
m_con = New OleDb.OleDbConnection
m_con.ConnectionString = connectionString
m_con.Open()
Catch ex As Exception
Throw ex
End Try
It works ok in the windows app, however, when running the ASP.Net App ( using IIS ), I get the following exception:
ORA-12154: TNS:could not resolve service name
What is causing this to work in a Windows App yet fails in the ASP.Net application? Any help is greatly appreciated.
Thanks,
Paul
Private m_cmd As System.Data.OleDb.OleDbCommand
Private m_con As System.Data.OleDb.OleDbConnection
dim connectionString as String
connectionString = "Provider=MSDAORA.1;User ID=myId;Data Source=PRD1;"
Try
m_con = New OleDb.OleDbConnection
m_con.ConnectionString = connectionString
m_con.Open()
Catch ex As Exception
Throw ex
End Try
It works ok in the windows app, however, when running the ASP.Net App ( using IIS ), I get the following exception:
ORA-12154: TNS:could not resolve service name
What is causing this to work in a Windows App yet fails in the ASP.Net application? Any help is greatly appreciated.
Thanks,
Paul