Share via

how to report C# errors

Anonymous
2021-12-21T14:01:38+00:00

Part of the program

Console.WriteLine(text);

if (text.Contains("<@>"))

{     sqltext = sqltext + text.Replace("&lt;@&gt;", ""); 

       Console.WriteLine(sqltext); 

} 

result of Console.WriteLine(text);

INSERT INTO zdcontainer.errorregister SET username='User',program='ConsoleApp8',domain='MUCKI95',hostname='Mucki95',occ_datetime='2021.03.25 16:52:59',identifier='DBD0011',errortext='Invalid attempt to access a field before calling Read()

SELECT sqlstmnt,data FROM t1 WHERE name = "Get fehlt"';<@>

result of Console.WriteLine(sqltext);

INSERT INTO zdcontainer.errorregister SET username='User',program='ConsoleApp8',domain='MUCKI95',hostname='Mucki95',occ_datetime='2021.03.25 16:52:59',identifier='DBD0011',errortext='Invalid attempt to access a field before calling Read()SELECT sqlstmnt,data FROM t1 WHERE name = "Get fehlt"';

Obviously the C# replaces <@>, but also function"Replace" also removes \n between

Read() and SELECT.

I'm sorry, but I don't know the regular way to report something like that

Peter

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2021-12-21T14:40:12+00:00

Hi Peter,

My name is Igor, I have 12 Microsoft MVP awards. It's a pleasure for me to help others and I'll do all my best to help you. I'm sorry you have a problems.

It is more effective to ask such questions at Q&A forum https://docs.microsoft.com/en-us/answers/index....

It is oriented to programmers, admins and corporate users, and this forum - to home users so local experts may have no corresponding knowledge, sorry.

And please consider error reopring at https://github.com/dotnet/roslyn/blob/main/docs...

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful