Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin forms unusal behavior

$
0
0

Hi,

I've updated my xamarin forms to 2.0.1.6495 and suddenly few of my UI screens are not showing up. I'm getting below mentioned exceptions.

Also I've attached my xaml file.

Ambiguous match found.
at System.RuntimeType.GetPropertyImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00070] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/rttype.cs:3308
at System.Type.GetProperty (System.String name) [0x00011] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/type.cs:760
at System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperty (System.Type type, System.String name) [0x00006] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/reflection/RAmbiguous match found.
at System.RuntimeType.GetPropertyImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00070] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/rttype.cs:3308
at System.Type.GetProperty (System.String name) [0x00011] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/type.cs:760
at System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperty (System.Type type, System.String name) [0x00006] in /Users/builder/data/lanes/2377/73229919/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/reflection/RuntimeReflectionExtensions.cs:109
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor+<>c__DisplayClass25_0.b__2 () [0x00000] in :0
at Xamarin.Forms.Xaml.TypeConversionExtensions+<>c__DisplayClass1_0.b__0 () [0x00008] in :0
at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func1 getConverter, IServiceProvider serviceProvider) [0x00015] in <filename unknown>:0 at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func1 minfoRetriever, IServiceProvider serviceProvider) [0x00021] in :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) [0x00266] in :0
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit (Xamarin.Forms.Xaml.ValueNode node, INode parentNode) [0x0005e] in :0
at Xamarin.Forms.Xaml.ValueNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00000] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00054] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00089] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00089] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00089] in :0
at Xamarin.Forms.Xaml.RootNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00064] in :0
at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject view, System.String xaml) [0x000cb] in :0
at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject view, System.Type callingType) [0x0002e] in :0
at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TView] (Xamarin.Forms.Xaml.TView view, System.Type callingType) [0x00000] in :0
at RxLifetime.UserDataPage.InitializeComponent () [0x0000c] in /Users/afourtest/Desktop/tempo/RxLifetime/RxLifetime/obj/Debug/RxLifetime.Patient.UserDataPage.xaml.g.cs:51
at RxLifetime.UserDataPage..ctor () [0x00009] in /Users/afourtest/Desktop/tempo/RxLifetime/RxLifetime/Patient/UserDataPage.xaml.cs:15
untimeReflectionExtensions.cs:109
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor+<>c__DisplayClass25_0.b__2 () [0x00000] in :0
at Xamarin.Forms.Xaml.TypeConversionExtensions+<>c__DisplayClass1_0.b__0 () [0x00008] in :0
at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func1 getConverter, IServiceProvider serviceProvider) [0x00015] in <filename unknown>:0 at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func1 minfoRetriever, IServiceProvider serviceProvider) [0x00021] in :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) [0x00266] in :0
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit (Xamarin.Forms.Xaml.ValueNode node, INode parentNode) [0x0005e] in :0
at Xamarin.Forms.Xaml.ValueNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00000] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00054] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00089] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00089] in :0
at Xamarin.Forms.Xaml.ElementNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00089] in :0
at Xamarin.Forms.Xaml.RootNode.Accept (IXamlNodeVisitor visitor, INode parentNode) [0x00064] in :0
at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject view, System.String xaml) [0x000cb] in :0
at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject view, System.Type callingType) [0x0002e] in :0
at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TView] (Xamarin.Forms.Xaml.TView view, System.Type callingType) [0x00000] in :0
at RxLifetime.UserDataPage.InitializeComponent () [0x0000c] in /Users/afourtest/Desktop/tempo/RxLifetime/RxLifetime/obj/Debug/RxLifetime.Patient.UserDataPage.xaml.g.cs:51
at RxLifetime.UserDataPage..ctor () [0x00009] in /Users/afourtest/Desktop/tempo/RxLifetime/RxLifetime/Patient/UserDataPage.xaml.cs:15
Thread finished: #17

'<?xml version="1.0" encoding="UTF-8"?>
  ' <ContentPage
     xmlns="http://xamarin.com/schemas/2014/forms" 
     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
     x:Class="RxLifetime.UserDataPage"
     xmlns:local="clr-namespace:RxLifetime;assembly=RxLifetime"
     Title="Emergency Data"
      BackgroundColor="White">
      <ScrollView>'

    <StackLayout
    Orientation="Vertical"
    HorizontalOptions="CenterAndExpand"
    VerticalOptions = "FillAndExpand"
    BackgroundColor = "White">

        <StackLayout
        Orientation = "Vertical"
        HorizontalOptions = "CenterAndExpand"
        x:Name="mLayoutName"
        >

            <Label
            Text = "Name"
            FontSize = "14"
            TextColor = "#757575"/>

            <local:ExtendedEntry
            Placeholder = "Enter your name"
            TextColor = "#000000"
            x:Name = "mEntryName"
            FontSize = "18"
            BorderStyle = "none"/>

            <BoxView
            BackgroundColor = "#E0E0E0"
            HeightRequest = "1"/>

        </StackLayout>

        <StackLayout
        Orientation = "Vertical"
        HorizontalOptions = "CenterAndExpand"
        x:Name="mLayoutContactNo"
        >
            <Label
            Text = "Contact Number"
            FontSize = "14"
            TextColor = "#757575"/>

            <local:ExtendedEntry
            Placeholder = "Enter your contact number"
            FontSize = "18"
            x:Name = "mEntryContactNo"
            TextColor = "#000000"
            BorderStyle = "none"/>

            <BoxView
            BackgroundColor = "#E0E0E0"
            HeightRequest = "1"/>

        </StackLayout>


        <StackLayout
        Orientation = "Vertical"
        HorizontalOptions = "CenterAndExpand"
        VerticalOptions = "Center"
        x:Name="mLayoutBloodGroup"
        >

            <Label
            Text = "Blood Group"
            FontSize = "14"
            TextColor = "#757575"/>

            <local:ExtendedPicker
            Title = "Select your blood group"
            FontSize = "18"
            x:Name = "mPickerBloodGroup"
            BorderStyle = "none"
            TextColor = "#000000"
            RightDrawable = "arrow"/>

            <BoxView
            BackgroundColor = "#E0E0E0"
            HeightRequest = "1"/>

        </StackLayout>

        <StackLayout
        Orientation = "Vertical"
        HorizontalOptions = "CenterAndExpand"
        x:Name="mLayoutAllergicTo"
        >

            <Label
            Text = "Allergic To"
            FontSize = "14"
            TextColor = "#757575"/>

            <local:ExtendedEntry
            Placeholder = "Allergic to"
            FontSize = "18"
            x:Name = "mEntryAllergicTo"
            TextColor = "#000000"
            BorderStyle = "none"/>

            <BoxView
            BackgroundColor = "#E0E0E0"
            HeightRequest = "1"/>

        </StackLayout>

        <StackLayout
        Orientation = "Vertical"
        HorizontalOptions = "CenterAndExpand"
        x:Name = "mLayoutButton">

            <Button
            x:Name="mButtonSave"
            Text = "SAVE"
            WidthRequest = "100"
            BackgroundColor = "#cc003d"
            TextColor = "White"
            FontSize = "16"/>

        </StackLayout>

    </StackLayout>


</ScrollView>
</ContentPage>
`

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>