{"record":{"id":"b2155956803cb2c7","repo":"BCUninstaller/Bulk-Crap-Uninstaller","slug":"could-not-find-steam-app-with-the-id-appidstr","errorCode":null,"errorMessage":"Could not find Steam App with the ID {appIdStr}","messagePattern":"Could not find Steam App with the ID (.+?)","errorType":"exception","errorClass":"ArgumentException","httpStatus":null,"severity":"error","filePath":"source/SteamHelper/SteamApplicationInfo.cs","lineNumber":55,"sourceCode":"        {\r\n            DirectoryInfo dir = null;\r\n            FileInfo manifestFile = null;\r\n            var appIdStr = appId.ToString(\"G\");\r\n\r\n            foreach (var steamAppsLocation in SteamInstallation.Instance.SteamAppsLocations)\r\n            {\r\n                var result = Directory.GetFiles(steamAppsLocation, @\"appmanifest_*.acf\")\r\n                    .FirstOrDefault(x => appIdStr.Equals(Path.GetFileNameWithoutExtension(x).Substring(12), StringComparison.InvariantCulture));\r\n                if (!string.IsNullOrEmpty(result))\r\n                {\r\n                    manifestFile = new FileInfo(result);\r\n                    dir = new DirectoryInfo(steamAppsLocation);\r\n                    break;\r\n                }\r\n            }\r\n\r\n            if (dir == null)\r\n                throw new ArgumentException(\"Could not find Steam App with the ID \" + appIdStr);\r\n\r\n            return FromParams(appId, manifestFile, dir);\r\n        }\r\n\r\n        private static SteamApplicationInfo FromParams(int appId, FileInfo manifestFile, DirectoryInfo containingAppsDir)\r\n        {\r\n            var appIdStr = appId.ToString(\"G\");\r\n            var output = new SteamApplicationInfo(appId);\r\n            output.ManifestPath = manifestFile.FullName;\r\n\r\n            //\"C:\\Steam\\steam.exe\" steam://uninstall/123\r\n            output.UninstallString = $\"\\\"{SteamInstallation.Instance.MainExecutableFilename}\\\" steam://uninstall/{appIdStr}\";\r\n\r\n            var manifestStrings = File.ReadAllLines(output.ManifestPath);\r\n            output.Name = GetManifestValue(manifestStrings, \"name\");\r\n            output.SizeOnDisk = GetManifestValue(manifestStrings, \"SizeOnDisk\");\r\n            var installDirName = GetManifestValue(manifestStrings, \"installdir\");\r\n            if (!string.IsNullOrEmpty(installDirName))\r","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/BCUninstaller/Bulk-Crap-Uninstaller/blob/608321de98e92297377b1eb69029af55c25504a1/source/SteamHelper/SteamApplicationInfo.cs#L37-L73","documentation":"An ArgumentException thrown by `SteamApplicationInfo.FromAppId` when no `appmanifest_<id>.acf` file matching the given AppID is found in any registered Steam library (SteamAppsLocations). The helper scans every library directory for a manifest whose numeric suffix equals the appId; if none matches, the app is considered not installed (or not installed via Steam) and the lookup fails.","triggerScenarios":"Calling `FromAppId(<id>)` where the id does not correspond to an installed Steam app, the manifest file was deleted/moved, or the Steam library folder list is incomplete (libraryfolders.vdf not parsed).","commonSituations":"App was uninstalled manually by deleting files; Steam installed to a non-standard drive not registered in libraryfolders.vdf; the AppID came from an external source and was never installed; Steam library on a disconnected external drive.","solutions":["Verify the app is currently installed by checking Steam's library UI.","Confirm the AppID is correct (look it up via `SteamHelper list`).","Ensure all Steam library folders are mounted and listed in `steamapps/libraryfolders.vdf`.","If the manifest was deleted but the app exists, reinstall via Steam then retry."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// Pre-check that a manifest exists for the id before calling FromAppId.\nbool installed = SteamInstallation.Instance.SteamAppsLocations\n    .Any(d => Directory.GetFiles(d, $\"appmanifest_{appId}.acf\").Length > 0);\nif (!installed) return; // or report 'not installed'","typeGuard":null,"tryCatchPattern":"try { var info = SteamApplicationInfo.FromAppId(appId); }\ncatch (ArgumentException ex) when (ex.Message.StartsWith(\"Could not find Steam App\"))\n{ /* treat as not-installed, skip or notify user */ }","preventionTips":["Enumerate installed apps (manifests) first and only look up ids you found.","Verify Steam library folders are mounted before lookup.","Handle not-installed as a normal case, not a crash."],"tags":["steam","filesystem","lookup","steamhelper"],"backgroundTag":null,"analyzedSha":"608321de98e92297377b1eb69029af55c25504a1","analyzedAt":"2026-08-13T12:17:35.389Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}