Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
QuestionTalking to a telnet server [modified] Pin
shultas9-Aug-09 8:21
shultas9-Aug-09 8:21 
AnswerRe: Talking to a telnet server Pin
Randor 9-Aug-09 9:41
professional Randor 9-Aug-09 9:41 
GeneralRe: Talking to a telnet server Pin
shultas9-Aug-09 9:54
shultas9-Aug-09 9:54 
GeneralRe: Talking to a telnet server Pin
shultas9-Aug-09 10:00
shultas9-Aug-09 10:00 
GeneralRe: Talking to a telnet server Pin
Luc Pattyn9-Aug-09 10:30
sitebuilderLuc Pattyn9-Aug-09 10:30 
GeneralRe: Talking to a telnet server Pin
Randor 9-Aug-09 10:32
professional Randor 9-Aug-09 10:32 
Question[Message Deleted] Pin
spankyleo1239-Aug-09 6:13
spankyleo1239-Aug-09 6:13 
AnswerRe: InsertOnSubmit error Pin
Luc Pattyn9-Aug-09 6:28
sitebuilderLuc Pattyn9-Aug-09 6:28 
spankyleo123 wrote:
Please help


sure.


spankyleo123 wrote:
catch (Exception ex)
{
throw new Exception(ex.Message);
}


this is the best way to stay in trouble: you have an Exception, and all you do is throw all the information away except for a single message line.
This would be better by several orders of magnitude:
catch (Exception ex) {
    Console.WriteLine(ex.ToString()); // outputs ALL available information including line numbers
    throw;                            // rethrows the original exception
}


BTW: you should tell your IDE to always show line numbers (see here[^]) in editor windows.

My best guess is context.Personnels is null, but I can't tell for sure as I didn't see the DataContext() constructor...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

General[Message Deleted] Pin
spankyleo1239-Aug-09 6:35
spankyleo1239-Aug-09 6:35 
GeneralRe: InsertOnSubmit error Pin
Luc Pattyn9-Aug-09 6:41
sitebuilderLuc Pattyn9-Aug-09 6:41 
QuestionForms overlapping Pin
Xmen Real 9-Aug-09 5:16
professional Xmen Real 9-Aug-09 5:16 
AnswerRe: Forms overlapping Pin
pelnor9-Aug-09 5:28
pelnor9-Aug-09 5:28 
GeneralRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 5:59
sitebuilderLuc Pattyn9-Aug-09 5:59 
GeneralRe: Forms overlapping Pin
pelnor9-Aug-09 6:10
pelnor9-Aug-09 6:10 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 6:22
professional Xmen Real 9-Aug-09 6:22 
AnswerRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 6:34
sitebuilderLuc Pattyn9-Aug-09 6:34 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 7:46
professional Xmen Real 9-Aug-09 7:46 
GeneralRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 7:53
sitebuilderLuc Pattyn9-Aug-09 7:53 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 7:55
professional Xmen Real 9-Aug-09 7:55 
AnswerRe: Forms overlapping Pin
Alan N9-Aug-09 9:06
Alan N9-Aug-09 9:06 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 15:06
professional Xmen Real 9-Aug-09 15:06 
GeneralRe: Forms overlapping [SOLVED] Pin
Xmen Real 9-Aug-09 15:33
professional Xmen Real 9-Aug-09 15:33 
AnswerRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 10:27
sitebuilderLuc Pattyn9-Aug-09 10:27 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 15:36
professional Xmen Real 9-Aug-09 15:36 
QuestionHelp needed in C# - Mobile App Development Pin
Member 1152439-Aug-09 4:44
Member 1152439-Aug-09 4:44 

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.