XML Serialization problem ( ver.2)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yevgeny

    XML Serialization problem ( ver.2)

    Hi folks!

    I have some XML Serialization problem.
    I searched Internet and found some good info but still can't resolve
    the problem.

    I have next situation:

    I have solution contains 2 projects: Proj1 and Proj2.
    Each project compiled to dll.
    In Proj1 contains Class1
    And Proj2 contains Class2.

    Now,
    Class2 has reference to Class1.
    I want to XML serialize Class2.
    In order to do that I added attr: [XmlInclude(type of(Class1))] before
    Class2 definition.

    It's compiled but when it's running it throws exception something like
    that:
    "File or assembly name Proj1, or one of its dependencies, was not
    found."

    My question is:
    Is it possible to serialize classes with refs to classes from another
    dlls? If yes – how can I "xml include" that dlls?

    Thanks in advance.

    Yevgeny.
Working...