{"record":{"id":"3dd740ae9a4d3299","repo":"BornToBeRoot/NETworkManager","slug":"profilefileinfo-path-could-not-be-found","errorCode":null,"errorMessage":"{profileFileInfo.Path} could not be found!","messagePattern":"(.+?) could not be found!","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"Source/NETworkManager.Profiles/ProfileManager.cs","lineNumber":779,"sourceCode":"                    ProfileFiles.Remove(profileFileInfo);\n\n                    // Notify migration completed\n                    ProfileMigrationCompleted();\n\n                    Log.Info($\"Legacy XML profile file migration completed: {profileFileInfo.Path}.\");\n                    return;\n                }\n                else\n                {\n                    DeserializeFromFile(profileFileInfo.Path);\n                }\n            }\n        }\n        else\n        {\n            // Don't throw an error if it's the default file.                \n            if (profileFileInfo.Path != GetProfilesDefaultFilePath())\n                throw new FileNotFoundException($\"{profileFileInfo.Path} could not be found!\");\n        }\n\n        LoadedProfileFile = profileFileInfo;\n\n        if (loadedProfileUpdated)\n            LoadedProfileFileChanged(LoadedProfileFile, true);\n\n        // Notify subscribers that profiles have been loaded/updated\n        ProfilesUpdated(false);\n\n        Log.Info(\"Profile file loaded successfully.\");\n    }\n\n    /// <summary>\n    ///     Method to save the currently loaded profiles based on the infos provided in the <see cref=\"ProfileFileInfo\" />.\n    /// </summary>\n    public static void Save()\n    {","sourceCodeStart":761,"sourceCodeEnd":797,"githubUrl":"https://github.com/BornToBeRoot/NETworkManager/blob/2780d65469917a296dbc15f206107d72e2d0115c/Source/NETworkManager.Profiles/ProfileManager.cs#L761-L797","documentation":"Load was asked to read a profile file whose FileInfo no longer points to an existing file on disk (deleted or moved after startup/enumeration). Legacy XML files that vanished are tolerated (migration path just logs and removes the entry), but for non-legacy profile files the missing file is treated as an unrecoverable state and a FileNotFoundException-style error is raised from Load, which Save also triggers when it reloads before writing.","triggerScenarios":"Thrown at Source/NETworkManager.Profiles/ProfileManager.cs:779 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the profile file exists at the configured path (File.Exists) before loading or saving.","Restore the profile file from backup or re-create it if it was deleted externally.","Correct the profile file path in the application settings if it points to a stale location.","Check for external processes (sync tools, antivirus, cleanup scripts) removing the file while the app runs."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2780d65469917a296dbc15f206107d72e2d0115c","analyzedAt":"2026-09-12T17:00:17.986Z","contentChangedAt":"2026-09-12T17:00:17.986Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}