Click here to Skip to main content
15,920,053 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to use Store Procedure in VC# 2005 ? Pin
Lisa Jorgensen24-Dec-06 15:59
Lisa Jorgensen24-Dec-06 15:59 
QuestionCustom hyperlinks in Richtextbox control [modified] Pin
rockychaudhary24-Dec-06 7:32
rockychaudhary24-Dec-06 7:32 
AnswerRe: Custom hyperlinks in Richtextbox control Pin
Judah Gabriel Himango24-Dec-06 8:36
sponsorJudah Gabriel Himango24-Dec-06 8:36 
QuestionModbus c# Pin
sajid.salim.khan24-Dec-06 7:28
sajid.salim.khan24-Dec-06 7:28 
AnswerRe: Modbus c# Pin
Judah Gabriel Himango24-Dec-06 8:59
sponsorJudah Gabriel Himango24-Dec-06 8:59 
QuestionHow to force datagrid to display DataColumn caption in column header Pin
AndrusM24-Dec-06 6:58
AndrusM24-Dec-06 6:58 
AnswerRe: How to force datagrid to display DataColumn caption in column header Pin
Lisa Jorgensen24-Dec-06 16:47
Lisa Jorgensen24-Dec-06 16:47 
QuestionWhy exception is not catched ? Pin
AndrusM24-Dec-06 6:56
AndrusM24-Dec-06 6:56 
The following code causes error in Update() line

Npgsql.NpgsqlException was unhandled by user code

Why exception is not catched ?
catch MUST catch all exceptions!

------ code:

int RowsUpdated;
try {
RowsUpdated = datapter.Update(changes);
}
catch {
System.Windows.Forms.MessageBox.Show("error");
transact.Rollback();
throw;
}


error message details are:

Npgsql.NpgsqlException was unhandled by user code
Message="ERROR: 23505: duplicate key violates unique constraint \"konto_pkey\""
Source="Npgsql"
BaseMessage="duplicate key violates unique constraint \"konto_pkey\""
Code="23505"
Detail=""
ErrorSql="update \"firma1\".\"konto\" set \"kontonr\" = '2', ....
File="nbtinsert.c"
Hint=""
Line="277"
Position=""
Routine="_bt_check_unique"
Severity="ERROR"
Where=""

StackTrace:
at Npgsql.NpgsqlConnector.CheckErrors() in c:\Desenvolvimento\NpgsqlBuildOficial2.0\src\Npgsql\NpgsqlConnector.cs:line 359
at Npgsql.NpgsqlConnector.CheckErrorsAndNotifications() in c:\Desenvolvimento\NpgsqlBuildOficial2.0\src\Npgsql\NpgsqlConnector.cs:line 410
at Npgsql.NpgsqlCommand.ExecuteCommand() in c:\Desenvolvimento\NpgsqlBuildOficial2.0\src\Npgsql\NpgsqlCommand.cs:line 1479
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior cb) in c:\Desenvolvimento\NpgsqlBuildOficial2.0\src\Npgsql\NpgsqlCommand.cs:line 633
at Npgsql.NpgsqlCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior cb) in c:\Desenvolvimento\NpgsqlBuildOficial2.0\src\Npgsql\NpgsqlCommand.cs:line 601
at System.Data.Common.DbDataAdapter.UpdateRowExecute(RowUpdatedEventArgs rowUpdatedEvent, IDbCommand dataCommand, StatementType cmdIndex)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)


Andrus
AnswerRe: Why exception is not catched ? Pin
Judah Gabriel Himango24-Dec-06 8:40
sponsorJudah Gabriel Himango24-Dec-06 8:40 
AnswerRe: Why exception is not catched ? Pin
Colin Angus Mackay24-Dec-06 8:43
Colin Angus Mackay24-Dec-06 8:43 
QuestionPicture process in C# Pin
abalfazl24-Dec-06 4:06
abalfazl24-Dec-06 4:06 
AnswerRe: Picture process in C# Pin
Colin Angus Mackay24-Dec-06 8:45
Colin Angus Mackay24-Dec-06 8:45 
QuestionVideo and .Net Framework Pin
Silver Illussion24-Dec-06 3:25
Silver Illussion24-Dec-06 3:25 
AnswerRe: Video and .Net Framework Pin
Judah Gabriel Himango24-Dec-06 8:45
sponsorJudah Gabriel Himango24-Dec-06 8:45 
GeneralRe: Video and .Net Framework Pin
Silver Illussion26-Jan-07 20:07
Silver Illussion26-Jan-07 20:07 
QuestionRemove rows in datagridview and save the dataset xml file Pin
Yustme23-Dec-06 23:43
Yustme23-Dec-06 23:43 
AnswerRe: Remove rows in datagridview and save the dataset xml file Pin
Judah Gabriel Himango24-Dec-06 9:02
sponsorJudah Gabriel Himango24-Dec-06 9:02 
GeneralRe: Remove rows in datagridview and save the dataset xml file Pin
Yustme24-Dec-06 9:14
Yustme24-Dec-06 9:14 
QuestionHow to fill null value for a column while selecting in oracle Pin
NK723-Dec-06 22:17
NK723-Dec-06 22:17 
AnswerRe: How to fill null value for a column while selecting in oracle Pin
Judah Gabriel Himango24-Dec-06 8:49
sponsorJudah Gabriel Himango24-Dec-06 8:49 
QuestionHow to Replicate/sync local database with Network database using c# application Pin
80Eddy23-Dec-06 19:16
80Eddy23-Dec-06 19:16 
AnswerRe: How to Replicate/sync local database with Network database using c# application Pin
Judah Gabriel Himango24-Dec-06 8:54
sponsorJudah Gabriel Himango24-Dec-06 8:54 
Questiontimer and thread in windows service Pin
justintimberlake23-Dec-06 18:32
justintimberlake23-Dec-06 18:32 
AnswerRe: timer and thread in windows service Pin
Judah Gabriel Himango24-Dec-06 8:56
sponsorJudah Gabriel Himango24-Dec-06 8:56 
QuestionJPEG Pin
MozhdehQeraati23-Dec-06 18:30
MozhdehQeraati23-Dec-06 18:30 

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.