Remoting issue

Remoting issue

Old forum URL: forums.lhotka.net/forums/t/4278.aspx


ajj3085 posted on Friday, February 01, 2008

Hi,

I have a static Dictionary, which stores LineItemOptions for a given LineItem subclass.  It works very similar to the implementation of per-type business rules.  AddLineItemOptions is virtual and called in the base constructor, and types may override this to call a RegisterOption method on the LineItemOptionManager.

Things work well in local mode, but when I try to use a remoted data portal I hit a problem; it seems that the client side of things, RegisterOption is never called.  The constructors never seem to be called, so when asked if there are options the answer is always No.

If I then create a NEW instance of a derived line item with options, the constructors ARE called and from then on out any time that derived class is asked if there are options for the type, the answer is Yes.

What's going on here?  I'm using Andres' compressed remoting proxy.

Thanks
Andy

ajj3085 replied on Friday, February 01, 2008

Ok, I see that Rocky has hit this as well.  I need to do the call in OnDeserialized as well.  I'll see if that fixes my issue.

ajj3085 replied on Friday, February 01, 2008

Hmm... that doesn't seem to work either.

ajj3085 replied on Friday, February 01, 2008

Ok.. Csla also does this after UndoChangesComplete... kind of interesting.  I'll see if that helps me too.


EDIT:  Still no joy...

ajj3085 replied on Friday, February 01, 2008

I must be overdue for vacation.

Of course, I'm on Vista, and I was running VS 2008 as an admin so I could have permission to connect to the w3scv or whatever process I need to so I can step into the "server" code as well.  And of course the Admin instance of VS can't see the network drive to get the latest version of my assembly, so even though the code did fix the issue and a new version of the assembly was build, vs continued to use the one already local which was now four versions behind.

So.. doing the same thing that Rocky did in Csla for AddBusinessRules fixes my issues as well...

Copyright (c) Marimer LLC