{"record":{"id":"184e5b0f6939af36","repo":"lucasg/Dependencies","slug":"0-s-file-could-not-be-found","errorCode":null,"errorMessage":"{0:s} file could not be found !","messagePattern":"(.+?) file could not be found !","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"DependenciesGui/DependencyWindow.xaml.cs","lineNumber":458,"sourceCode":"                }\n\n                return _OpenPeviewerCommand;\n            }\n        }\n\n        public bool OpenPeviewer(object Context)\n        {\n            string programPath = Dependencies.Properties.Settings.Default.PeViewerPath;\n            Process PeviewerProcess = new Process();\n\n            if (Context == null)\n            {\n                return false;\n            }\n\n            if (!File.Exists(programPath))\n            {\n                System.Windows.MessageBox.Show(String.Format(\"{0:s} file could not be found !\", programPath));\n                return false;\n            }\n\n            string Filepath = ModuleFilePath;\n            if (Filepath == null)\n            {\n                return false;\n            }\n\n            PeviewerProcess.StartInfo.FileName = String.Format(\"\\\"{0:s}\\\"\", programPath);\n            PeviewerProcess.StartInfo.Arguments = String.Format(\"\\\"{0:s}\\\"\", Filepath); \n            return PeviewerProcess.Start();\n        }\n\n        public RelayCommand OpenNewAppCommand\n        {\n            get\n            {","sourceCodeStart":440,"sourceCodeEnd":476,"githubUrl":"https://github.com/lucasg/Dependencies/blob/1997a40000b77bd3326cbc33672a7b9f78bb23f3/DependenciesGui/DependencyWindow.xaml.cs#L440-L476","documentation":"Shown by ModuleTreeViewItem.OpenPeviewer (DependenciesGui/DependencyWindow.xaml.cs:458) when File.Exists(programPath) is false, where programPath = Dependencies.Properties.Settings.Default.PeViewerPath. The external peview.exe (bundled from ProcessHacker) is required to open a module in the PE viewer, so if that configured path is missing the action is aborted with a MessageBox and OpenPeviewer returns false.","triggerScenarios":"User clicks the 'open in peview' command on a tree node but PeViewerPath points at a file that does not exist (default install moved, peview deleted, or the AV-safe build without peview.exe is in use).","commonSituations":"Running the `Dependencies_x64_Release_.without.peview.exe` package; PeViewerPath reset to empty after a portable-app relocation; antivirus quarantining peview.exe (the README notes peview can trigger AV).","solutions":["In Options->Properties set PeViewerPath to a valid peview.exe (or install the full release bundle that includes it).","Restore peview.exe from quarantine if your AV removed it, or add an exclusion.","If you intentionally use the peview-less build, disable/hide the 'open in peview' command."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"string programPath = Dependencies.Properties.Settings.Default.PeViewerPath;\nif (!File.Exists(programPath))\n{\n    System.Windows.MessageBox.Show($\"{programPath} file could not be found !\");\n    return false;\n}\n// safe to launch peview","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate PeViewerPath at startup and prompt the user to set it if missing, rather than at click time.","If distributing the peview-less build, hide the OpenPeviewer command to avoid the dead-end dialog."],"tags":["gui","peviewer","configuration","file-not-found"],"backgroundTag":null,"analyzedSha":"1997a40000b77bd3326cbc33672a7b9f78bb23f3","analyzedAt":"2026-08-13T18:14:41.696Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}