lucasg/Dependencies · warning
We could not find {0:s} file on the disk anymore, please fix
Error message
We could not find {0:s} file on the disk anymore, please fix this problem and refresh the window via F5 What it means
Shown by OnTreeViewSelectedItemChanged (DependenciesGui/DependencyWindow.xaml.cs:1183) when a tree node is selected but NativeFile.Exists(SelectedModule.Filepath) is false - i.e. a module that was present when the tree was built has since been removed/moved. SelectedModule.HasErrors is set true, a MessageBox asks the user to fix the problem and press F5 to refresh, and import/export lists are cleared for root selections.
Source
Thrown at DependenciesGui/DependencyWindow.xaml.cs:1183
if (this.DllTreeView.SelectedItem == null)
{
UpdateImportExportLists(null, null);
return;
}
DependencyNodeContext childTreeContext = ((DependencyNodeContext)(this.DllTreeView.SelectedItem as ModuleTreeViewItem).DataContext);
DisplayModuleInfo SelectedModule = childTreeContext.ModuleInfo.Target as DisplayModuleInfo;
if (SelectedModule == null)
{
return;
}
// Selected Pe has not been found on disk : unvalidate current module
SelectedModule.HasErrors = !NativeFile.Exists(SelectedModule.Filepath);
if (SelectedModule.HasErrors)
{
// TODO : do a proper refresh instead of asking the user to do it
System.Windows.MessageBox.Show(String.Format("We could not find {0:s} file on the disk anymore, please fix this problem and refresh the window via F5", SelectedModule.Filepath));
}
// Root Item : no parent
ModuleTreeViewItem TreeRootItem = this.DllTreeView.Items[0] as ModuleTreeViewItem;
ModuleTreeViewItem SelectedItem = this.DllTreeView.SelectedItem as ModuleTreeViewItem;
if (SelectedItem == TreeRootItem)
{
// Selected Pe has not been found on disk : unvalidate current module
if (SelectedModule.HasErrors)
{
UpdateImportExportLists(null, null);
}
else
{
SelectedModule.HasErrors = false;
UpdateImportExportLists(SelectedModule, null);
}
View on GitHub (pinned to 1997a40000)
Solutions
- Restore the missing file to its original path, then press F5 to rebuild the tree.
- If the path is permanently gone, re-run the analysis against a complete file set.
- Re-add custom search folders (Options->Properties) so resolution can relocate moved modules on refresh.
Defensive patterns
Strategy: validation
Validate before calling
// Re-validate existence before trusting a cached/stale module path.
SelectedModule.HasErrors = !NativeFile.Exists(SelectedModule.Filepath);
if (SelectedModule.HasErrors)
{
MessageBox.Show($"We could not find {SelectedModule.Filepath} on the disk anymore, please fix this problem and refresh via F5");
} Prevention
- Re-run NativeFile.Exists on selection rather than trusting the path captured at tree-build time.
- Trigger a rebuild (F5) after restoring files so the stale HasErrors flag clears.
When it happens
Trigger: Selecting a dependency node whose backing file was deleted, renamed, or unmounted between tree construction and the click (e.g. an installer finished and removed temp DLLs, or an AV quarantined the file).
Common situations: Long-lived analysis sessions where files churn; analysing installers that clean up after themselves; removable-media or network paths that disconnected.
Related errors
- Loading PE file "{0:s}" failed : file not present on disk.
- {0:s} file could not be found !
- {0:s} is not present on the disk
- peview.exe file could not be found !
- [x] Could not find file {0:s} on disk
AI-assisted analysis of lucasg/Dependencies@1997a40000 (2026-08-13).
Data as JSON: /api/errors/aa680be91ed955c9.
Report an issue: GitHub.