Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Xamarin-System.ArgumentException:值不在预期范围内_C#_Xamarin - Fatal编程技术网

C# Xamarin-System.ArgumentException:值不在预期范围内

C# Xamarin-System.ArgumentException:值不在预期范围内,c#,xamarin,C#,Xamarin,我有一个随机出现的问题 [mono]未处理的异常: [mono]System.ArgumentException:值不在预期范围内。 [mono rt][错误]致命的未处理异常:System.ArgumentException:值不在预期范围内 但是,如果我控制指定的行,这里写的代码是 Device.BeginInvokeOnMainThread(() => { Debug.WriteLine("aaa5");

我有一个随机出现的问题

[mono]未处理的异常: [mono]System.ArgumentException:值不在预期范围内。 [mono rt][错误]致命的未处理异常:System.ArgumentException:值不在预期范围内

但是,如果我控制指定的行,这里写的代码是

Device.BeginInvokeOnMainThread(() => 
                    {
                Debug.WriteLine("aaa5");
                    AppViewModel.Instance.CpvVisibility = false;
                    Bottom.IsVisible = false;
                    FattureListView.IsVisible = false;
}))

有同样问题的人?
谢谢。

哪个平台抛出了该错误?什么是完整的异常/堆栈跟踪?平台是Android。完整的stacktrace没有给我任何信息,只有数字行(即Device.BeginInvokeOnMainThread)。