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

  1. Restore the missing file to its original path, then press F5 to rebuild the tree.
  2. If the path is permanently gone, re-run the analysis against a complete file set.
  3. 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

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


AI-assisted analysis of lucasg/Dependencies@1997a40000 (2026-08-13). Data as JSON: /api/errors/aa680be91ed955c9. Report an issue: GitHub.