Red Gate forums :: View topic - are types being made private?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

are types being made private?

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
ronzul



Joined: 07 Jul 2010
Posts: 2

PostPosted: Wed Jul 07, 2010 11:25 am    Post subject: are types being made private? Reply with quote

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
View user's profile Send private message
Paul.Martin



Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Wed Jul 07, 2010 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
ronzul



Joined: 07 Jul 2010
Posts: 2

PostPosted: Thu Jul 08, 2010 2:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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