G
Guest
Hello,
We have a global error handler in a Windows Service application (.NET 2.0).
The global handler sends out the error message to a few select individuals
via e-mail (technical support. I am wondering if there is a possiblity that
an error message (i.e. ex.GetBaseException.ToString) could display any
program data or database
field names, etc. The application reads data from a database and if a crash
occurs; I want to know if I send the exception text if the error text could
display any data in my program OR any database field names. For example,
could it say something like "invalid field name X" or "error parsing string
Y"; where X is a name of a field in the database and Y is the contents of a
string. For example, it would be a bad thing if it sent an error like
("Error parsing field "Social Security Number" with a field value of
111-11-1111). We are using GetBaseException.ToString, and I was thinking
that GetBaseException.ToString or Exception.ToString would give a generic
error like "Field not found" or "Error parsiing string" while not revelaing
the field name or data contents. The application involves medical/personal
data for patients and we cannot reveal any data in the e-mail that is sent to
support personnel. However the support personnel are NOT supposed to see
private medical information. We are currently sending the exception.tostring
in the e-mail, but am concerned it might reveal data.
Can it reveal database data values or field names as I mentioned?
We are using ALL Microsoft ADO.NET data providers and are using SQL Server
that are built into VS 2005. I posted this question to the CLR newsgroup;
but they referred me to this group since they said VS 2005 won't do this, but
they didn't know for sure about the ADO.NET components in VS 2005.
We have a global error handler in a Windows Service application (.NET 2.0).
The global handler sends out the error message to a few select individuals
via e-mail (technical support. I am wondering if there is a possiblity that
an error message (i.e. ex.GetBaseException.ToString) could display any
program data or database
field names, etc. The application reads data from a database and if a crash
occurs; I want to know if I send the exception text if the error text could
display any data in my program OR any database field names. For example,
could it say something like "invalid field name X" or "error parsing string
Y"; where X is a name of a field in the database and Y is the contents of a
string. For example, it would be a bad thing if it sent an error like
("Error parsing field "Social Security Number" with a field value of
111-11-1111). We are using GetBaseException.ToString, and I was thinking
that GetBaseException.ToString or Exception.ToString would give a generic
error like "Field not found" or "Error parsiing string" while not revelaing
the field name or data contents. The application involves medical/personal
data for patients and we cannot reveal any data in the e-mail that is sent to
support personnel. However the support personnel are NOT supposed to see
private medical information. We are currently sending the exception.tostring
in the e-mail, but am concerned it might reveal data.
Can it reveal database data values or field names as I mentioned?
We are using ALL Microsoft ADO.NET data providers and are using SQL Server
that are built into VS 2005. I posted this question to the CLR newsgroup;
but they referred me to this group since they said VS 2005 won't do this, but
they didn't know for sure about the ADO.NET components in VS 2005.