Vb.net 从usercontrol导航到页面时出现TypeLoadException

Vb.net 从usercontrol导航到页面时出现TypeLoadException,vb.net,xaml,user-controls,windows-8.1,Vb.net,Xaml,User Controls,Windows 8.1,我的Usercontrol中有以下代码: Private Sub tap(sender As Object, e As TappedRoutedEventArgs) Handles Me.Tapped Try CType(Window.Current.Content, Frame).Navigate(GetType(calendar_day)) 'calendar_day is a page in project' Catch ex As Exc

我的Usercontrol中有以下代码:

Private Sub tap(sender As Object, e As TappedRoutedEventArgs) Handles Me.Tapped
     Try
        CType(Window.Current.Content, Frame).Navigate(GetType(calendar_day))
        'calendar_day is a page in project'
    Catch ex As Exception
        Debug.WriteLine(ex.HelpLink)
        Debug.WriteLine(ex.HResult)
        Debug.WriteLine(ex.InnerException)
        Debug.WriteLine(ex.Message)
        Debug.WriteLine(ex.Source)
        Debug.WriteLine(ex.StackTrace)
    End Try
End Sub
输出:

A first chance exception of type 'System.TypeLoadException' occurred in Organize.exe

-2146233054

Could not find Windows Runtime type 'Windows.Foundation'.
mscorlib    
at System.StubHelpers.WinRTTypeNameConverter.GetTypeFromWinRTTypeName(String typeName, Boolean& isPrimitive)
at System.StubHelpers.SystemTypeMarshaler.ConvertToManaged(TypeNameNative* pNativeType, Type& managedType)
at Windows.UI.Xaml.Controls.Frame.Navigate(Type sourcePageType)
at Organize.day_btn.clicked(Object sender, TappedRoutedEventArgs e)

我尝试过清理、重建和构建x64和x86,但没有任何帮助。

我首先将日历日创建为BlankPage1,然后重命名了文件和类。但是在calendar_day.xaml中,我离开了
x:Class=“Organize.BlankPage1”

谢谢你的提示。我有一个类似的错误,原因是Page类应该位于Views命名空间中。