应用程序崩溃而不调用未处理的异常方法Windows Phone 8

时间:2014-04-17 07:19:02

标签: c# xaml exception windows-phone-8

我正在为WP7和WP8开发一个应用程序 所以我完成了WP7部分,它运行正常,现在我已将目标版本更新到Windows Phone 8,我的应用程序崩溃而没有通知任何内容。
在xaml设计器中,它显示如下错误:

Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException

我不明白如何解决这个问题,因为我已经尝试过在互联网上提供的方法,将.dll文件从一个位置复制到另一个位置,但在我的情况下也没有用。

页面的Xaml崩溃之前...

 x:Class="Climatech.View.AddDeviceView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:toolkit1="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:controlsPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True"
    DataContext="{Binding AddDeviceModel,Source={StaticResource Locator}}" >

任何人都可以帮助我,或者至少指导我解决问题所在......

1 个答案:

答案 0 :(得分:1)

这里有一个关于调试WP应用程序的有趣演示,可能有些东西你没有尝试过,可能有助于解决这个问题。 http://channel9.msdn.com/Events/Build/2014/3-578