How to solve the KeyNotFoundException error when WebMatrix3 is started? keynotfoundexception

Source: Internet
Author: User
Tags microsoft download center

How to solve the KeyNotFoundException error when WebMatrix3 is started? keynotfoundexception

I downloaded WebMatrix3 and iis express8 online.

An error is reported when you run WebMatrix3 after installation. The log is as follows:

System. Collections. Generic. KeyNotFoundException: the command to be used is not in the valid command list. The command being used is not in the list of valid commands.

Application: WebMatrix.exe

Framework Version: v4.0.30319

Note: The process is terminated due to an unhandled exception.

Exception information: System. Collections. Generic. KeyNotFoundException

STACK:

In Microsoft. WebMatrix. Core. CommandManagerImplementation. get_Item (Microsoft. WebMatrix. Core. CommandId)

In Microsoft. WebMatrix. Core. StartPageViewModel. InitializeNewMenu ()

In Microsoft. WebMatrix. Core. StartPageViewModel. InitializeButtonViewModels ()

In Microsoft. WebMatrix. Core. StartPageViewModel... ctor (System. IServiceProvider)

In Microsoft. WebMatrix. Core. StartPage.. ctor (System. IServiceProvider)

In Microsoft. WebMatrix. Core. ShellMainWPF. OnShellMainWPFLoaded (System. Object, System. Windows. RoutedEventArgs)

In System. Windows. RoutedEventHandlerInfo. InvokeHandler (System. Object, System. Windows. RoutedEventArgs)

In System. Windows. EventRoute. InvokeHandlersImpl (System. Object, System. Windows. RoutedEventArgs, Boolean)

In System. Windows. UIElement. RaiseEventImpl (System. Windows. DependencyObject, System. Windows. RoutedEventArgs)

In System. Windows. UIElement. RaiseEvent (System. Windows. RoutedEventArgs)

In System. Windows. broadcasteven Thelper. BroadcastEvent (System. Windows. DependencyObject, System. Windows. RoutedEvent)

In System. Windows. broadcasteven Thelper. BroadcastLoadedEvent (System. Object)

In MS. Internal. LoadedOrUnloadedOperation. DoWork ()

In System. Windows. Media. MediaContext. FireLoadedPendingCallbacks ()

In System. Windows. Media. MediaContext. FireInvokeOnRenderCallbacks ()

In System. Windows. Media. MediaContext. RenderMessageHandlerCore (System. Object)

In System. Windows. Media. MediaContext. RenderMessageHandler (System. Object)

In System. Windows. Media. MediaContext. Resize (System. Windows. Media. ICompositionTarget)

In System. Windows. Interop. HwndTarget. OnResize ()

In System. Windows. Interop. HwndTarget. HandleMessage (MS. Internal. Interop. WindowMessage, IntPtr, IntPtr)

In System. Windows. Interop. HwndSource. HwndTargetFilterMessage (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

In MS. Win32.HwndWrapper. WndProc (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

In MS. Win32.HwndSubclass. DispatcherCallbackOperation (System. Object)

In System. Windows. Threading. ExceptionWrapper. InternalRealCall (System. Delegate, System. Object, Int32)

In MS. Internal. Threading. ExceptionFilterHelper. TryCatchWhen (System. Object, System. Delegate, System. Object, Int32, System. Delegate)

In System. Windows. Threading. Dispatcher. LegacyInvokeImpl (System. Windows. Threading. DispatcherPriority, System. TimeSpan, System. Delegate, System. Object, Int32)

In MS. Win32.HwndSubclass. SubclassWndProc (IntPtr, Int32, IntPtr, IntPtr)

In MS. Win32.UnsafeNativeMethods. CallWindowProc (IntPtr, IntPtr, Int32, IntPtr, IntPtr)

In MS. Win32.HwndSubclass. DefWndProcWrapper (IntPtr, Int32, IntPtr, IntPtr)

In MS. Win32.UnsafeNativeMethods. CallWindowProc (IntPtr, IntPtr, Int32, IntPtr, IntPtr)

In MS. Win32.HwndSubclass. SubclassWndProc (IntPtr, Int32, IntPtr, IntPtr)

In Standard. NativeMethods. _ set1_wrgn (IntPtr, IntPtr, Boolean)

In Standard. NativeMethods. setjavaswrgn (IntPtr, IntPtr, Boolean)

In Microsoft. Windows. Shell. WindowChromeWorker. _ ClearRoundingRegion ()

In Microsoft. Windows. Shell. WindowChromeWorker. _ UpdateFrameState (Boolean)

In Microsoft. Windows. Shell. WindowChromeWorker. _ ApplyNewCustomChrome ()

In Microsoft. Windows. Shell. WindowChromeWorker. <_ SetWindow> B _ 1 (System. Object, System. EventArgs)

In System. Windows. Window. OnSourceInitialized (System. EventArgs)

In System. Windows. Window. CreateSourceWindow (Boolean)

In System. Windows. Window. CreateSourceWindowDuringShow ()

In System. Windows. Window. SafeCreateWindowDuringShow ()

In System. Windows. Window. ShowHelper (System. Object)

In System. Windows. Window. Show ()

In System. Windows. Application. B _ f (System. Object)

In System. Windows. Threading. ExceptionWrapper. InternalRealCall (System. Delegate, System. Object, Int32)

In MS. Internal. Threading. ExceptionFilterHelper. TryCatchWhen (System. Object, System. Delegate, System. Object, Int32, System. Delegate)

In System. Windows. Threading. DispatcherOperation. InvokeImpl ()

In System. Windows. Threading. DispatcherOperation. InvokeInSecurityContext (System. Object)

In System. Threading. ExecutionContext. RunInternal (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object, Boolean)

In System. Threading. ExecutionContext. Run (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object, Boolean)

In System. Threading. ExecutionContext. Run (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object)

In System. Windows. Threading. DispatcherOperation. Invoke ()

In System. Windows. Threading. Dispatcher. ProcessQueue ()

In System. Windows. Threading. Dispatcher. WndProcHook (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

In MS. Win32.HwndWrapper. WndProc (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

In MS. Win32.HwndSubclass. DispatcherCallbackOperation (System. Object)

In System. Windows. Threading. ExceptionWrapper. InternalRealCall (System. Delegate, System. Object, Int32)

In MS. Internal. Threading. ExceptionFilterHelper. TryCatchWhen (System. Object, System. Delegate, System. Object, Int32, System. Delegate)

In System. Windows. Threading. Dispatcher. LegacyInvokeImpl (System. Windows. Threading. DispatcherPriority, System. TimeSpan, System. Delegate, System. Object, Int32)

In MS. Win32.HwndSubclass. SubclassWndProc (IntPtr, Int32, IntPtr, IntPtr)

In MS. Win32.UnsafeNativeMethods. DispatchMessage (System. Windows. Interop. MSG ByRef)

In System. Windows. Threading. Dispatcher. PushFrameImpl (System. Windows. Threading. DispatcherFrame)

In System. Windows. Threading. Dispatcher. PushFrame (System. Windows. Threading. DispatcherFrame)

In System. Windows. Threading. Dispatcher. Run ()

In System. Windows. Application. RunDispatcher (System. Object)

In System. Windows. Application. RunInternal (System. Windows. Window)

In System. Windows. Application. Run (System. Windows. Window)

In Microsoft. WebMatrix. Core. WebMatrixShellApplication. Execute (Boolean, Boolean)

In Microsoft. WebMatrix. Core. ShellApplicationHelper. Execute (StartupFlags)

In Microsoft. WebMatrix. Core. ShellApplicationHelper. Execute ()

In Microsoft. WebMatrix. EntryPoint. Main (System. String [])

--------

16:27:17

--------

System. Collections. Generic. KeyNotFoundException: the command to be used is not in the valid command list.

In Microsoft. WebMatrix. Core. CommandManagerImplementation. get_Item (CommandId id)

In Microsoft. WebMatrix. Core. StartPageViewModel. InitializeNewMenu ()

In Microsoft. WebMatrix. Core. StartPageViewModel. InitializeButtonViewModels ()

In Microsoft. WebMatrix. Core. StartPageViewModel... ctor (IServiceProvider serviceProvider)

In Microsoft. WebMatrix. Core. StartPage.. ctor (IServiceProvider serviceProvider)

In Microsoft. WebMatrix. Core. ShellMainWPF. OnShellMainWPFLoaded (Object sender, RoutedEventArgs e)

In System. Windows. RoutedEventHandlerInfo. InvokeHandler (Object target, RoutedEventArgs routedEventArgs)

In System. Windows. EventRoute. InvokeHandlersImpl (Object source, RoutedEventArgs args, Boolean reRaised)

In System. Windows. UIElement. RaiseEventImpl (DependencyObject sender, RoutedEventArgs args)

In System. Windows. UIElement. RaiseEvent (RoutedEventArgs e)

In System. Windows. broadcasteven Thelper. BroadcastEvent (DependencyObject root, RoutedEvent routedEvent)

In System. Windows. broadcasteven Thelper. BroadcastLoadedEvent (Object root)

In MS. Internal. LoadedOrUnloadedOperation. DoWork ()

In System. Windows. Media. MediaContext. FireLoadedPendingCallbacks ()

In System. Windows. Media. MediaContext. FireInvokeOnRenderCallbacks ()

In System. Windows. Media. MediaContext. RenderMessageHandlerCore (Object resizedCompositionTarget)

In System. Windows. Media. MediaContext. RenderMessageHandler (Object resizedCompositionTarget)

In System. Windows. Media. MediaContext. Resize (ICompositionTarget resizedCompositionTarget)

In System. Windows. Interop. HwndTarget. OnResize ()

In System. Windows. Interop. HwndTarget. HandleMessage (WindowMessage msg, IntPtr wparam, IntPtr lparam)

In System. Windows. Interop. HwndSource. HwndTargetFilterMessage (IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean & handled)

In MS. Win32.HwndWrapper. WndProc (IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean & handled)

In MS. Win32.HwndSubclass. DispatcherCallbackOperation (Object o)

In System. Windows. Threading. ExceptionWrapper. InternalRealCall (Delegate callback, Object args, Int32 numArgs)

In MS. Internal. Threading. ExceptionFilterHelper. TryCatchWhen (Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


Cause: You did not use Microsoft Web Platform Installer for direct installation, and many dependencies are missing for self-installation.

Different Versions of WebMatrix3 depend on different components. Download the Microsoft Web Platform V5.0

The following components need to be installed: (64-bit system is used as an example. 32-bit systems do not need components labeled x64)

Microsoft SQL Server 2012 Transact-SQL ScriptDom

Microsoft SQL Server 2012 Data-Tier Application Framework 11.0x86 (December April 2012)

Microsoft SQL Server 2012 Data-Tier Application Framework 11.0x64 (December April 2012)

Microsoft WebMatrix 3

Microsoft System CLR Types for Microsoft SQL Server 2012 (x64)

Microsoft System CLR Types for Microsoft SQL Server 2012 (x86)

Web Deploy 3.0-July 2012

You can search for and install these components from the Microsoft download center, or install visual studio express 2012/2013 directly.

These components are shared with visual studio express 2012/2013 or sqlserver 2012 express.

Test System (all with original notes ):

Windows 8 Chinese version (64-bit)

Windows 7 family edition (32-bit)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.