Hi Eric,
I tried to compare the 2 samples: 1 where I got it to work somehow and the other one which I could not get to work.
I observed that the 1st one was using SAP Business One DI API Version 9.0, where as the 2nd one was using the 2007 version.
I removed the Reference and added reference to SAP Business One DI API Version 9.0 , and it started working.
However, when adding Reference, it does not show any version for SAP Business One DI API Version 9.1. Why is it so?
The old approach of using the db username and password is still working. I will try out the new approach and also your samples. Do you have any document which says this approach can not be or should not be used?
Thanks.