The situation is this: Main project A. and class library B. References B
Project B has classes to be serialized. Classes are used in A. Now the problem arises when I try to serialize objects from B. from Project A. An exception is fixed where it says that a class from A cannot be serialized. This is the weird part, since in classes in B I cannot refer to those in A. (a circular dependency will be created).
How can I track the problem? because the exception method does not say where the problem appeared?
Edit:
Well, I found the problem with the small Kent Boogaart : D application . I have a PropertyChanged listener in a class in project A that is not marked Serializable - and I don't want to flag it. (will it serialize this class to the right?)
I solved the problem with the event by following the link: .NET 2.0 solution for serializing objects that raise events . There is still a problem, but probably something similar.
PS: Great tool from Kent Boogaart
source
share