我現在有一個很大的問題。它發生在我嘗試綁定到字典時,在這種情況下使用轉換或反射。Windows無法與目標應用程序通信。非常煩人的錯誤
當我嘗試啓動應用程序,我得到以下錯誤:
無法激活Windows商店應用[應用程序名稱這裏。激活請求失敗,錯誤'Windows無法與目標應用程序通信。這通常表示目標應用程序的進程已中止。更多信息可以在輸出窗口的Debug窗口中找到(Debug-> Windows-> Output)。
參見幫助的意見對解決該問題。
輸出窗口不提供有關這個問題的進一步信息。實際上,它甚至表示應用程序正常啓動。
我已經檢查像在互聯網上每一個博客或論壇,入境,但似乎沒有任何幫助。我已經重新安裝了我的VS 2012,錯誤仍然存在。在這種情況下,下面的代碼導致錯誤(無論我什麼元素使用的過渡)
<StackPanel.ChildrenTransitions>
<PopupThemeTransition/>
</StackPanel.ChildrenTransitions>
我真的沒了主意。在另一種情況下,下面的代碼導致崩潰:
public class PresentColorsView
{
static PresentColorsView()
{
List<PresentColorsView> ColorsList = new List<PresentColorsView>();
IEnumerable<PropertyInfo> Properties = typeof(Colors).GetTypeInfo().DeclaredProperties;
foreach (PropertyInfo property in Properties)
{
PresentColorsView tmpAddColors = new PresentColorsView();
if (property.Name.Length < 7)
{
tmpAddColors.ColorName = property.Name;
tmpAddColors.Color = (Color) property.GetValue(null);
ColorsList.Add(tmpAddColors);
}
}
AllColors = ColorsList;
}
public string ColorName { get; set; }
public Color Color { get; set; }
public static IEnumerable<PresentColorsView> AllColors { get; set; }
}
我真的沒有想法,不知道該怎麼做了。我經常發現這個錯誤,我甚至從一本書或其他東西中抄錄了完整的單詞或單詞。這限制了我高速發展的能力!
我真的很感謝每一條建議。我正在考慮下載VS 2013並檢查天氣錯誤仍會發生。
非常感謝!
問候,FunkyPeanut
有道理!我會在稍後檢查!謝謝。轉換的事情通過安裝vs 2013解決 - 我不知道爲什麼,但現在一切正常! – FunkyPeanut