Skip to content

Instantly share code, notes, and snippets.

@atin360
Created June 17, 2013 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atin360/3e1b0b6d57a7a1b4aff3 to your computer and use it in GitHub Desktop.
Save atin360/3e1b0b6d57a7a1b4aff3 to your computer and use it in GitHub Desktop.
System.InvalidOperationException: There was an error reflecting type 'System.Collections.Generic.List`1[[FrogScroller.ImageDetails, FrogScroller, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]'. ---> System.Exception: There was an error reflecting type 'FrogScroller.ImageDetails'. ---> System.Exception: FrogScroller.ImageDetails cannot be serialized because it does not have a default public constructor
at System.Xml.Serialization.ReflectionHelper.CheckSerializableType (System.Type type, Boolean allowPrivateConstructors) [0x000c6] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/ReflectionHelper.cs:100
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping (System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00030] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:343
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00074] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:221
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00161] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:244
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Type type, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00047] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:196
at System.Xml.Serialization.XmlReflectionImporter.ImportListMapping (System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.Xml.Serialization.XmlAttributes atts, Int32 nestingLevel) [0x002af] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:545
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00083] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:222
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00161] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:244
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Type type, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x00047] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs:196
at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) [0x0004d] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:227
at System.Xml.Serialization.XmlSerializer..ctor (System.Type type) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:175
at FrogScroller.ImageScrollView.ImageData () [0x00023] in /Users/imac/Desktop/monotouch-samples-master/FrogScroller/FrogScroller/ImageScrollView.cs:226
at FrogScroller.ImageScrollView.get_ImageCount () [0x00001] in /Users/imac/Desktop/monotouch-samples-master/FrogScroller/FrogScroller/ImageScrollView.cs:238
at FrogScroller.ImageViewController.ImageViewControllerForPageIndex (Int32 pageIndex) [0x00001] in /Users/imac/Desktop/monotouch-samples-master/FrogScroller/FrogScroller/ImageViewController.cs:19
at FrogScroller.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00029] in /Users/imac/Desktop/monotouch-samples-master/FrogScroller/FrogScroller/AppDelegate.cs:28
at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at FrogScroller.AppDelegate.Main (System.String[] args) [0x00001] in /Users/imac/Desktop/monotouch-samples-master/FrogScroller/FrogScroller/AppDelegate.cs:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment