| Author |
Message |
ronzul
Joined: 07 Jul 2010 Posts: 2
|
Posted: Wed Jul 07, 2010 11:25 am Post subject: 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 |
|
| Back to top |
|
 |
Paul.Martin
Joined: 03 Feb 2010 Posts: 83 Location: Cambridgeshire
|
Posted: Wed Jul 07, 2010 7:58 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
ronzul
Joined: 07 Jul 2010 Posts: 2
|
Posted: Thu Jul 08, 2010 2:12 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group