Forum Xamarin.Forms

Problems when running WP 8.1 app on WP 10

G-forceG-force USMember ✭✭
edited January 2018 in Xamarin.Forms

Hi! I'm developing an application for a customer since a few years back. The app is pretty simple, and uses Forms, resulting in apps for iOS, Android and Windows Phone.

Recently I needed to do an update to the app, and am now having problems with the WP version. WP is still quite extensively used, so it needs to work. The problem only presents itself on WP10, where the app (installed through the Windows store) previously worked. The app also works fine on the WP 8.1 emulator, both in debug or release config.

On WP 10, the app crashes on startup with one of the following errors.


Stack trace
0 Xamarin.Forms.Xaml.ApplyPropertiesVisitor.SetPropertyValue
1 Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit
2 Xamarin.Forms.Xaml.ElementNode.Accept
3 Xamarin.Forms.Xaml.RootNode.Accept
4 Xamarin.Forms.Xaml.XamlLoader.Visit
5 Xamarin.Forms.Xaml.XamlLoader.Load
6 Xamarin.Forms.Xaml.XamlLoader.Load
7 Xamarin.Forms.Xaml.Extensions.LoadFromXaml[[System.__Canon,_mscorlib]]
8 MyApp.Main.InitializeComponent
9 MyApp.Main..ctor
10 MyApp.App..ctor
11 MyApp.WinPhone.MainPage..ctor



Stack trace
0 System.RuntimeType.TryChangeType
1 System.RuntimeType.CheckValue
2 System.Reflection.MethodBase.CheckArguments
3 System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck
4 System.Reflection.RuntimeMethodInfo.Invoke
5 System.Reflection.MethodBase.Invoke
6 Xamarin.Forms.Xaml.ApplyPropertiesVisitor.TryAddToProperty
7 Xamarin.Forms.Xaml.ApplyPropertiesVisitor.SetPropertyValue
8 Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit
9 Xamarin.Forms.Xaml.ElementNode.Accept
10 Xamarin.Forms.Xaml.ElementNode.Accept
11 Xamarin.Forms.Xaml.RootNode.Accept
12 Xamarin.Forms.Xaml.XamlLoader.Visit
13 Xamarin.Forms.Xaml.XamlLoader.Load
14 Xamarin.Forms.Xaml.XamlLoader.Load
15 Xamarin.Forms.Xaml.Extensions.LoadFromXaml[[System.__Canon,_mscorlib]]
16 MyApp.Settings.InitializeComponent
17 MyApp.Settings..ctor
18 MyApp.Main..ctor
19 MyApp.App..ctor
20 MyApp.WinPhone.MainPage..ctor

So I have a couple of questions related to this.
1) (Obvious one, but) can someone make sense of this and point me to a solution? It's not much to go on, I know...
2) Is there a prefered way to test WP 8.1 apps on a WP 10 emulator? I'm wondering, since the Forms WP tools are no longer included in Visual Studio 2017 and 2015 only has the 8.1 emulator.

Any help is much appreciated!

Sign In or Register to comment.