Dear fellow users, I'm trying to send an error message to the user, but only my Data logs are not working, could you please help me out? Note, I put breakpoints to compile my
application, but it does not fall within the code referring to Data, it was to work : /
This is the part of the code that is not falling on the breakpoint and not displaying the logs for the user:
- private void setProcessInter (Process process, Interested party, DataRow line, int i)
- {
- i = 4;
- i ++;
- try
- {
- if (! line.ItemArray [17] .ToString ().) Equals (""))
- processInterested.CodeSep = decimal.Parse (line.ItemArray [17] .ToString ());
- else
- processInterested.CodeSep = null;
- try
- {
- DateTime DateSep = DateTime.Parse (line.ItemArray [18] .ToString ());
- processInterested.DateSep = DateSep;
- }
- catch
- {
- logErro.Append ("The cell S" + (line ["index"]) + "must be filled with a date.");
- fileInvalidated = true;
- }
- try
- {
- DateTime DataEntrySefaz = DateTime.Parse (line.ItemArray [19] .ToString ());
- processInterested.DateInputSelf = DateEntrySelf;
- }
- catch
- {
- logErro.Append ("The T cell" + (line ["index"]) + "must be filled with a date.");
- fileInvalidated = true;
- }
- try
- {
- DateTime DateRequestPgto = DateTime.Parse (line.ItemArray [0] .ToString ());
- processInterestedDate = DateRequisitionoPgto;
- }
- catch
- {
- logErro.Append ("cell A" + (row ["index"]) + "must be filled with a date.");
- fileInvalidated = true;
- }
- processInterested.Interested = interested;
- catch (Exception error)
- {
- fileInvalidated = true;
- logErro.Append (error.Message + "<br>");
- }
- }