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.

Xamarin.Forms.Xaml.XamlParseException

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

and

System.ArgumentException

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