using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace GTA_5_Guide
{
public partial class MainPage : PhoneApplicationPage
{
//Constructor
public MainPage()
{
//Loads the page onto the screen
InitializeComponent(); //This is were the error is thrown
}
}
}
抛出的错误是“在System.Windows.ni.dll中发生'System.Windows.Markup.XamlParseException'类型的第一次机会异常”
一切都运转良好,直到我决定不使用我在项目中找到的网页而不再引发此错误
答案 0 :(得分:0)
10次中有9次这通常只是设计器文件没有继承相同的Type。
确保您的MainPage根XAML控件是面对面的<phone:PhoneApplicationPage...