【问题标题】:App Crashing without calling Unhandled Exception method Windows Phone 8应用程序崩溃而不调用未处理的异常方法 Windows Phone 8
【发布时间】:2014-04-28 07:54:12
【问题描述】:

我正在为 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}}" >

谁能帮我解决这个问题,或者至少引导我找到问题所在......

【问题讨论】:

  • 你能复制粘贴首页顶部的 xaml 部分吗?它可能在那个部分。
  • 这是太大的代码,因为我已经打开了许多控件的样式并对其进行了编辑..
  • 那么就很难看到任何东西了。如果您明白我的意思,我正在考虑 xaml 中的 using 语句:) 而不是整个 xaml 代码。
  • 我已经添加了代码请检查....
  • 你在使用 MVVMLight 吗?然后我会使用 DataContext 作为 DataContext="{Binding Source={StaticResource Locator}, Path=AddDeviceModel}" 其他代码我找不到问题抱歉。

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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多