Click here to Skip to main content
16,014,940 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: DataGrid ItemCommand Pin
John R. Shaw30-Jul-06 11:55
John R. Shaw30-Jul-06 11:55 
GeneralRe: DataGrid ItemCommand Pin
Ista30-Jul-06 16:11
Ista30-Jul-06 16:11 
QuestionCustom right click options Pin
Fahad Wali27-Jul-06 21:37
Fahad Wali27-Jul-06 21:37 
AnswerRe: Custom right click options Pin
Mike Ellison3-Aug-06 3:21
Mike Ellison3-Aug-06 3:21 
Questioncheckbox in datagrid, but on some rows - help Pin
John Zantey27-Jul-06 21:03
John Zantey27-Jul-06 21:03 
AnswerRe: checkbox in datagrid, but on some rows - help Pin
Paddy Boyd27-Jul-06 22:57
Paddy Boyd27-Jul-06 22:57 
AnswerRe: checkbox in datagrid, but on some rows - help Pin
Khawar Abbas127-Jul-06 23:24
Khawar Abbas127-Jul-06 23:24 
QuestionHow to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" Pin
cs856927-Jul-06 20:35
cs856927-Jul-06 20:35 
I have a web application which uses oracle database. Below is the minimum code which explains how I am accessing the data.
At a time the application working fine and I can access and do everything with database. Some other time database server is down for scheduled maintenance. If I try to run the application at this point of time it will raise err "ORA-12154: TNS:could not resolve service name"
(I'm catching this exception and displaying a custom error message to users). After some hours the database server is up an running.
Now if I run the application it should behave normal and give database access. But it dose not, and continue to give the same ORA-12154" error.
In such case I have to reset IIS to make the application work normal. So the question is how to avoid re-occurring Err "ORA-12154".

private string get_name()
{
string name = "no name";
string conn_str = "Provider=MSDAORA.1;Persist Security Info=True;Data Source=test;User ID=test;Password=test";
OleDbConnection db_conn = new OleDbConnection(conn_str);
db_conn.Open();
string str_sql = "select name_complete from emp_master " +
"where emp_no = '" + TextBox1.Text + "'";
OleDbCommand db_cmd = new OleDbCommand(str_sql, db_conn);
OleDbDataReader db_reader = db_cmd.ExecuteReader();
while (db_reader.Read())
{
name = db_reader[0].ToString();
}
db_reader.Close();
db_conn.Close();
return name;
}


CA Keer.

AnswerRe: How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" [modified] Pin
Member 9628-Jul-06 5:01
Member 9628-Jul-06 5:01 
AnswerRe: How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" Pin
Ista28-Jul-06 11:22
Ista28-Jul-06 11:22 
GeneralRe: How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" Pin
cs85693-Aug-06 22:11
cs85693-Aug-06 22:11 
GeneralRe: How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" Pin
Ista4-Aug-06 3:29
Ista4-Aug-06 3:29 
GeneralRe: How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" Pin
cs856910-Aug-06 23:39
cs856910-Aug-06 23:39 
Questionnetwork credentials in web config Pin
mehnazash27-Jul-06 20:05
mehnazash27-Jul-06 20:05 
AnswerRe: network credentials in web config Pin
Mike Ellison3-Aug-06 3:12
Mike Ellison3-Aug-06 3:12 
QuestionDataGrid using c# ASP.NET 2.0 Pin
HTaHir27-Jul-06 19:48
HTaHir27-Jul-06 19:48 
AnswerRe: DataGrid using c# ASP.NET 2.0 Pin
Mike Ellison3-Aug-06 3:15
Mike Ellison3-Aug-06 3:15 
GeneralRe: DataGrid using c# ASP.NET 2.0 Pin
HTaHir3-Aug-06 20:04
HTaHir3-Aug-06 20:04 
QuestionHow to build and maintain the Shopping Cart in asp.net 2.0? Pin
Jay_se27-Jul-06 19:25
Jay_se27-Jul-06 19:25 
AnswerRe: How to build and maintain the Shopping Cart in asp.net 2.0? Pin
bluewavestrider28-Jul-06 0:12
bluewavestrider28-Jul-06 0:12 
GeneralRe: How to build and maintain the Shopping Cart in asp.net 2.0? Pin
Jay_se28-Jul-06 1:13
Jay_se28-Jul-06 1:13 
QuestionCHALLENGE: Formview (ObjectDataSource) can't handle nullable types? Handling null values Pin
joelsef27-Jul-06 19:05
joelsef27-Jul-06 19:05 
AnswerRe: CHALLENGE: Formview (ObjectDataSource) can't handle nullable types? Handling null values Pin
Ista28-Jul-06 7:43
Ista28-Jul-06 7:43 
GeneralRe: CHALLENGE: Formview (ObjectDataSource) can't handle nullable types? Handling null values Pin
joelsef28-Jul-06 8:47
joelsef28-Jul-06 8:47 
GeneralRe: CHALLENGE: Formview (ObjectDataSource) can't handle nullable types? Handling null values Pin
Ista28-Jul-06 9:38
Ista28-Jul-06 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.