I could be completely off-base here, because I've never had to do this for
serialization, but you might want to look into creating an
AppDomain.TypeResolve event handler to resolve the type.
I've never used TypeResolve, but I have used ResourceResolve and
AssemblyResolve and it sounds like it might fit the bill for you.
Pete
>I have a type that is serializable that is located in an assembly that is
> loaded dynamically from a special directory. When deserializing this
[quoted text clipped - 10 lines]
>
> Thanks.
Oldman - 10 Apr 2007 20:46 GMT
Thanks! I will look into that.
> I could be completely off-base here, because I've never had to do this for
> serialization, but you might want to look into creating an
[quoted text clipped - 19 lines]
> >
> > Thanks.
Oldman - 10 Apr 2007 21:34 GMT
This didn't work. In fact it never fired. However, I know the problem has
something to do with it being in the dynamically loaded assembly because when
I move the definition out into the main executable it works appropriately.
Any other suggestions?
> I could be completely off-base here, because I've never had to do this for
> serialization, but you might want to look into creating an
[quoted text clipped - 19 lines]
> >
> > Thanks.