C# XAML解析异常

C# XAML解析异常,c#,xaml,windows-phone-8,C#,Xaml,Windows Phone 8,我找了又找,答案还是找不到。这是我的密码 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.Navigatio

我找了又找,答案还是找不到。这是我的密码

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'的第一次意外异常”


在我决定不再使用我在项目中找到的网页之前,一切都很正常。没有,它10次中有9次抛出此错误。这通常只是设计器文件没有继承相同的类型


确保你的主页根XAML控件位于face
中,你应该发布主页。XAML…工作正常,直到我决定不使用网页。。。是否删除了MainPage.xaml?:)您给出的代码没有给出任何正在发生的事情的线索,您需要显示标记
Xaml
,尤其是删除网页的区域。