D
Dino Chiesa [MSFT]
What is dsCity on the service side?
If I understand correctly, the winforms app is invoking a remote webmethod,
passing in the dataset. On the client (winforms) side, this dataset is
called dsCity. On the service side, it is called ds. The webservice has
*another* dataset, this one is also called dsCity. (But of course it is a
different dataset than the client-side dsCity!). What is the service-side
dsCity? how is it initialized? What is its scope?
To see what I mean, can you modify your code to include a
if (dsCity != null)
just before the merge statement in the webmethod code?
I predict you will no longer see the null ptr exception.
This of course does not fix your app, but it illustrates the problem.
-D
If I understand correctly, the winforms app is invoking a remote webmethod,
passing in the dataset. On the client (winforms) side, this dataset is
called dsCity. On the service side, it is called ds. The webservice has
*another* dataset, this one is also called dsCity. (But of course it is a
different dataset than the client-side dsCity!). What is the service-side
dsCity? how is it initialized? What is its scope?
To see what I mean, can you modify your code to include a
if (dsCity != null)
just before the merge statement in the webmethod code?
I predict you will no longer see the null ptr exception.
This of course does not fix your app, but it illustrates the problem.
-D