J
Jamie Dulaney
Background
-------------
I have attempted to use the "SetColumnError" and/or "RowError" methods in
order to post error text about specific error conditions that were found
during the editing of rows that were either added or updated in an ADO.NET
dataset->datatable->datarow... I'm using 'typed' datasets and I'm passing
these typed datasets between webforms and webservices.. Framework 1.1/VS
2003/C#.
Problem
---------
I have discovered when I post error text with these methods (either at the
column or the row level WITHIN THE WEB SERVICE) then subsequent parameters
that get passed from my webservices get corrupted. A cheap example
webservice call would look like the following:
WebServiceA.UpdateCustomer ref dsCustomers,
out dsMessages
Note: I realize the above won't compile... trying to keep the rif raf
down. Basically two parameters, both typed datasets. First one will be
editted and contain errors.
The dsCustomers would have some sort of errors on rows that were targeted to
be inserted/updated. The code that allows me to SetColumnError(x,"yyyyy")
or RowError = "yyyyy". Would have 'marked' this column/row object. No
problem during the edit identification and error text posting process.
However, when the webservice returns control to the calling function the
last parameter dsMessages (in the example above) becomes <undefined> and it
subsequently throws a null object exception. BTW.. when tracing in debugger
it is assigned and defined just prior to the return. There is definantly
something wrong with setting the error text AND maintaining integrity of the
memory.
Just wondering if anyone else has seen this AND/OR maybe can shed some light
on it ???? I couldn't find much through ms newsgroup and/or google searchs
on this...
-------------
I have attempted to use the "SetColumnError" and/or "RowError" methods in
order to post error text about specific error conditions that were found
during the editing of rows that were either added or updated in an ADO.NET
dataset->datatable->datarow... I'm using 'typed' datasets and I'm passing
these typed datasets between webforms and webservices.. Framework 1.1/VS
2003/C#.
Problem
---------
I have discovered when I post error text with these methods (either at the
column or the row level WITHIN THE WEB SERVICE) then subsequent parameters
that get passed from my webservices get corrupted. A cheap example
webservice call would look like the following:
WebServiceA.UpdateCustomer ref dsCustomers,
out dsMessages
Note: I realize the above won't compile... trying to keep the rif raf
down. Basically two parameters, both typed datasets. First one will be
editted and contain errors.
The dsCustomers would have some sort of errors on rows that were targeted to
be inserted/updated. The code that allows me to SetColumnError(x,"yyyyy")
or RowError = "yyyyy". Would have 'marked' this column/row object. No
problem during the edit identification and error text posting process.
However, when the webservice returns control to the calling function the
last parameter dsMessages (in the example above) becomes <undefined> and it
subsequently throws a null object exception. BTW.. when tracing in debugger
it is assigned and defined just prior to the return. There is definantly
something wrong with setting the error text AND maintaining integrity of the
memory.
Just wondering if anyone else has seen this AND/OR maybe can shed some light
on it ???? I couldn't find much through ms newsgroup and/or google searchs
on this...