Skip to content

Instantly share code, notes, and snippets.

@sunil360
Created April 29, 2015 15:07
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 sunil360/515b0e7b77b81f4c479c to your computer and use it in GitHub Desktop.
Save sunil360/515b0e7b77b81f4c479c to your computer and use it in GitHub Desktop.
System.InvalidCastException: Unable to cast object of type 'Xamarin.Forms.ContentPage' to type 'Xamarin.Forms.View'.
at Xamarin.Forms.VisualElement.<.cctor>b__3 (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x00000] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x00112] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x00235] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x00061] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.SetPropertyValue (System.Object xamlelement, XmlName propertyName, System.Object value, Xamarin.Forms.BindableObject rootElement, INode node, Xamarin.Forms.Xaml.HydratationContext context, IXmlLineInfo lineInfo) [0x002e1] in <filename unknown>:0
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit (Xamarin.Forms.Xaml.ValueNode node, INode parentNode) [0x0004f] in <filename unknown>:0
at Xamarin.Forms.Xaml.ValueNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00030] in <filename unknown>:0
at Xamarin.Forms.Xaml.RootNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00067] in <filename unknown>:0
at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject view, System.String xaml) [0x000cb] in <filename unknown>:0
at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject view, System.Type callingType) [0x0002b] in <filename unknown>:0
at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[MyPage] (TabbedPage_bug.MyPage view, System.Type callingType) [0x00000] in <filename unknown>:0
at TabbedPage_bug.MyPage.InitializeComponent () [0x0000c] in /Users/tajinder/Downloads/TabbedPage_bug/iOS/obj/iPhoneSimulator/Debug/MyPage.xaml.g.cs:20
at TabbedPage_bug.MyPage..ctor () [0x00008] in /Users/tajinder/Downloads/TabbedPage_bug/TabbedPage_bug/MyPage.xaml.cs:12
at TabbedPage_bug.App..ctor () [0x00008] in /Users/tajinder/Downloads/TabbedPage_bug/TabbedPage_bug/TabbedPage_bug.cs:12
at TabbedPage_bug.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00007] in /Users/tajinder/Downloads/TabbedPage_bug/iOS/AppDelegate.cs:17
at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/1503/db1ccb62/source/maccore/src/UIKit/UIApplication.cs:63
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/1503/db1ccb62/source/maccore/src/UIKit/UIApplication.cs:47
at TabbedPage_bug.iOS.Application.Main (System.String[] args) [0x00008] in /Users/tajinder/Downloads/TabbedPage_bug/iOS/Main.cs:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment