I have two remote objects names Product and ProductDALC. ProductDALC is responsible for creating, updating and deleting products in DB. Both are marshalbyref and I am using remoting to work with them from the client side. I have a small server which is reponsible for taking care of these remote objects on server. On the client side, I create a Product object and assign values to its properties. I then want to call a method of the ProductDALC to store this new product data in DB. The method is CreateProd and I want to pass an instance of the Product to it this way on the client:
Dim SampleProd as new Product
'assign values to SapleProd properties
Dim MyProdDALC as new ProductDALC
MyProdDALC.CreateProd(SampleProd)
However, I notice that the SampleProd is being passed a null object. Why? Both objects are declared SingleCall
Dim SampleProd as new Product
'assign values to SapleProd properties
Dim MyProdDALC as new ProductDALC
MyProdDALC.CreateProd(SampleProd)
However, I notice that the SampleProd is being passed a null object. Why? Both objects are declared SingleCall