Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/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
Windows phone 7 Windows Phone 7-System.ArgumentOutOfRangeException_Windows Phone 7 - Fatal编程技术网

Windows phone 7 Windows Phone 7-System.ArgumentOutOfRangeException

Windows phone 7 Windows Phone 7-System.ArgumentOutOfRangeException,windows-phone-7,Windows Phone 7,各位。 我正在为win7手机开发一个应用程序,在导航方面遇到了一些问题。我有一张全景图和一张照片 两个枢轴控件。当我导航到第一个轴时,全景控件是主页面 控制和做一些工作,我可以回到主页,然后走出应用程序没有任何问题。 但是,当我在第二个pivot控件中执行某些工作时,返回到主页面会遇到问题。 我正在浏览主页->第一个数据透视回按钮->主页->第二个数据透视回按钮->主页。我可以看到我正在进入主页, 但随后应用程序崩溃了。在输出窗口中,我可以看到此异常: A first chance except

各位。 我正在为win7手机开发一个应用程序,在导航方面遇到了一些问题。我有一张全景图和一张照片 两个枢轴控件。当我导航到第一个轴时,全景控件是主页面 控制和做一些工作,我可以回到主页,然后走出应用程序没有任何问题。 但是,当我在第二个pivot控件中执行某些工作时,返回到主页面会遇到问题。 我正在浏览主页->第一个数据透视回按钮->主页->第二个数据透视回按钮->主页。我可以看到我正在进入主页, 但随后应用程序崩溃了。在输出窗口中,我可以看到此异常:

A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurr*emphasized text*ed in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
'taskhost.exe' (Managed): Loaded 'System.SR.dll'
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll
A first chance exception of type 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.dll

您在问题中没有给出足够的细节来回答它,但是,听起来您在维护状态的位置以及可能的逻辑删除实现方面有问题。我建议您阅读这篇文章,并根据所描述的技术制定解决方案:


当我试图将两个UIElement绑定到两个不同的容器中时,遇到了这个错误

事实上,UIElement是一个UserControlpartial类。我有另一个名为same和partial的类,这导致理解错误:

在silverlight中,您可以从容器中删除一个元素并将其添加到另一个容器中

但不能将UIElement添加到两个不同的容器中

但是,由于科林说错误信息不太清楚,导致这个错误的原因是其他的。 我在堆栈中看到以下错误。如果存在,您可以检查部分隔离存储的使用情况

在System.Windows.dll中出现*强调文本* 和 发生System.IO.IsolatedStorage.IsolatedStorage异常'


希望有帮助

谢谢你的回复,我还需要提供什么信息?在右键按下“上一步”按钮后进入主页时,应用程序崩溃:受保护的覆盖无效OnNavigatedToNavigationEventArgs e{//right here base.OnNavigatedToe;无例外