Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AppUIBasics] [dev branch] unhandled exception:NavigationMenuItem is not registered #681

Closed
andrejo-msft opened this issue Jun 21, 2017 · 3 comments

Comments

@andrejo-msft
Copy link
Member

OS: rs_prerelease 16215 (Windows Insider Fast build)
VS: 15.2 (26430.13) - public release of Visual Studio
SDK: 16590 - public insider pre-release of FCU SDK

Open the AppUIBasics.sln in the dev branch (has samples of Fluent controls).
Build and deploy the project (Debug/x64).

Expected:
App runs

Actual:
Unhandled user exception:
Exception details follow.

This code did function as of //build - considering that there has been no shift in code or SDK, one would assume that there is a regression with either Visual Studio or Windows as we've moved on from May.

System.TypeLoadException occurred
HResult=0x80131522
Message=Requested Windows Runtime type 'Windows.UI.Xaml.Controls.NavigationMenuItem' is not registered.
Source=
StackTrace:
at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at Windows.UI.Xaml.Controls.NavigationMenuItem..ctor()
at AppUIBasics.NavigationRootPage.AddNavigationMenuItems() in E:\github\Windows-universal-samples\Samples\XamlUIBasics\cs\AppUIBasics\Navigation\NavigationRootPage.xaml.cs:line 153
at AppUIBasics.NavigationRootPage.d__35.MoveNext() in E:\github\Windows-universal-samples\Samples\XamlUIBasics\cs\AppUIBasics\Navigation\NavigationRootPage.xaml.cs:line 225

Inner Exception 1:
COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

@KasperHoldum
Copy link

I am experiencing the same error.

OS: rs_prerelease 16226 (Windows Insider Fast build)
VS: 15.3 Preview 2.1
SDK: Windows Insider Preview 16190

@Lukespacewalker
Copy link

Lukespacewalker commented Jun 29, 2017

Just Update to 16255 SDK, I find out that NavigationMenuItem has been changed to NavigationViewItem instead.

By changing the code, the application is now compiled properly.

oldnewthing pushed a commit that referenced this issue Jul 13, 2017
- Fix issue #681: NavigationMenuItem was renamed to NavigationViewItem
- Update SystemControlRevealBorderListMediumBrush to SystemControlBackgroundListMediumRevealBorderBrush
@oldnewthing
Copy link
Member

Fix has been merged into dev.

oldnewthing added a commit that referenced this issue Jun 16, 2023
* BluetoothLE:  Protect against bad device thumbnails #905
* BarcodeScanner: Add software trigger support to scenario 1 #681
* New: NetworkConnectivity
* Archived: BarcodeScanner VB and C++/CX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants