Link to home
Start Free TrialLog in
Avatar of aferia
aferia

asked on

.NET Late Binding and Serialization with Generic Classes

Hi,

I have an executable that is referencing a assembly using late binding. This assembly has a serializable class that contains a generic list of another serializable class delcared in the assembly as such:

<Serializable()> Public Class SomeSeriazableClass
<Serializable()> Public Class AnotherSerializableClass
Public Property MyString as string
End Class

Public Property MyList as list(of AnotherSerializableClass)
End Class

Open in new window


The binary serialization binder is blowing up because it cannot retrieve the "AnotherSerializableClass" type when requesting the generic list from the mscorlib.

I have ran out of ideas, is there anything that I can do to make this work?
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Can you show us the full exception?
ASKER CERTIFIED SOLUTION
Avatar of aferia
aferia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aferia
aferia

ASKER

This explains it well.