How can we help you today? How can we help you today?

are types being made private?

Hi... newbie Ronny here

My CF2 app is not feeling very well after using SA.

I am using System.Xml.Serialization and it is throwing an InvalidOperationException saying that "Only public types can be processed".

Any clues?

Thanks
Ronny
ronzul
0

Comments

2 comments

  • Paul.Martin
    A few questions:

    Which protections are you applying to your assembly?

    Is the type that is failing to be Serialized in the main assembly or in a separate dll? If it is in a separate dll are you merging it into the main assembly as this could cause issues for serialization.

    Does the type that is failing to be Serialized have an attribute within the System.Xml.Serialization namespace, as SmartAssembly will pick this up and be very careful with the type.
    Paul.Martin
    0
  • ronzul
    Many thanks

    The classes being serialised were in external DLLs that were being merged. Simply adding an [XmlType] attribute to them did the trick.

    Cheers
    Ronny
    ronzul
    0

Add comment

Please sign in to leave a comment.