Windows 10 Event viewer : error when creating custom view

  • Thread starter Thread starter Adelscott92
  • Start date Start date
A

Adelscott92

Hi,


I can't create a custom view.


When I click on "Custom View" under "Event Viewer (Local)" I get an error "MMC has detected an error in a snap-in and will unload it"




The detailed error appears after :





Content is :


FX:{b05566ad-fe9c-4363-be05-7a4cbb7cb510}

The process cannot access the file 'C:\ProgramData\Microsoft\Event Viewer\Views\View_0.xml' because it is being used by another process.​


at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.get_IsReadOnlyView()
at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.UpdateReadOnly()
at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.InitializeQueryNode(FileInfo fileInfo)
at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.AddSubNodes(DirectoryInfo dir, EventNodeType nodeType, Boolean userQuery, String standardViewConfig)
at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.AddSavedQueryNodes()
at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.CreateChildNodes()
at Microsoft.EventViewer.SnapIn.MMCEventsNode.ExpandNode()
at Microsoft.EventViewer.SnapIn.MMCEventsNode.OnExpand(AsyncStatus status)
at Microsoft.ManagementConsole.NodeSyncManager.ProcessRequest(NodeRequestInfo info, IRequestStatus requestStatus)
at Microsoft.ManagementConsole.SnapIn.ProcessRequest(Request request)
at Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)
at Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)
at Microsoft.ManagementConsole.Executive.RequestStatus.BeginRequest(IMessageClient messageClient, RequestInfo requestInfo)
at Microsoft.ManagementConsole.Executive.SnapInRequestOperation.ProcessRequest()
at Microsoft.ManagementConsole.Executive.Operation.OnThreadTransfer(SimpleOperationCallback callback)​



If I delete the file "C:\ProgramData\Microsoft\Event Viewer\Views\View_0.xml" and open Event Viewer, then I can open Custom Views




But as soon as I save a new created custom view I get the same error.


Any idea ?

Continue reading...
 
Back
Top