55 references to FileNotFoundException
Aspire.Hosting (3)
ApplicationModel\AspireStoreExtensions.cs (1)
27throw new FileNotFoundException("The source file does not exist.", sourceFilename);
Dcp\DcpDependencyCheck.cs (1)
49throw new FileNotFoundException($"The Aspire orchestration component is not installed at \"{dcpPath}\". The application cannot be run without it.", dcpPath);
Dcp\DcpHost.cs (1)
248throw new FileNotFoundException($"The Developer Control Plane is not installed at \"{dcpExePath}\". The application cannot be run without it.", dcpExePath);
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
51throw new FileNotFoundException("File {0} does not exist. Please ensure the runtime graph path exists.", rgp);
dotnet (1)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
207throw new FileNotFoundException(message: null, projectToLoad);
Microsoft.AspNetCore.Http.Results (2)
PhysicalFileHttpResult.cs (1)
115throw new FileNotFoundException($"Could not find file: {FileName}", FileName);
VirtualFileHttpResult.cs (1)
111throw new FileNotFoundException($"Could not find file: {FileName}.", FileName);
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\PhysicalFileResultExecutor.cs (1)
34throw new FileNotFoundException(
Infrastructure\VirtualFileResultExecutor.cs (1)
42throw new FileNotFoundException(
Microsoft.Build (1)
src\msbuild\src\Shared\TypeLoader.cs (1)
255throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\Manifest.cs (1)
496throw new FileNotFoundException(null, f.SourcePath);
ManifestUtil\SecurityUtil.cs (1)
658throw new FileNotFoundException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SignTargetNotFound"), path), path);
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
307throw new FileNotFoundException(string.Format(Resources.ShouldProvideValidAssemblyName, directory), nameof(searchPaths));
Microsoft.DotNet.XliffTasks (1)
Tasks\XlfTask.cs (1)
84throw new FileNotFoundException($"File not found: {path}", path);
Microsoft.Extensions.DataIngestion.MarkItDown (2)
MarkItDownMcpReader.cs (1)
43throw new FileNotFoundException("The specified file does not exist.", source.FullName);
MarkItDownReader.cs (1)
41throw new FileNotFoundException("The specified file does not exist.", source.FullName);
Microsoft.Maui.Resizetizer (2)
ResizeImageInfo.cs (2)
83 throw new FileNotFoundException("Unable to find background file: " + fileInfo.FullName, fileInfo.FullName); 122 throw new FileNotFoundException("Unable to find foreground file: " + fgFileInfo.FullName, fgFileInfo.FullName);
Microsoft.TemplateEngine.Edge (3)
Mount\Archive\ZipFileFile.cs (3)
29throw new FileNotFoundException("File not found", FullPath); 33throw new FileNotFoundException("File not found", FullPath); 38throw new FileNotFoundException("File not found", FullPath);
Microsoft.TemplateEngine.Utils (5)
InMemoryFileSystem.cs (5)
516throw new FileNotFoundException("File not found", path); 574throw new FileNotFoundException("File not found", file); 606throw new FileNotFoundException("File not found", file); 637throw new FileNotFoundException("File not found", file); 668throw new FileNotFoundException("File not found", file);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
WindowsHangDumper.cs (1)
149throw new FileNotFoundException("Could not find DumpMinitool", dumpMinitoolPath);
Microsoft.TestPlatform.PlatformAbstractions (1)
common\System\ProcessHelper.cs (1)
60throw new FileNotFoundException("Path does not exist: " + processPath, processPath);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
125throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, InternalResources.CannotFindConsoleRunner, consoleRunnerPath), consoleRunnerPath);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
DataCollector\TransferInformation\FileTransferInformation.cs (1)
63throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.Common_FileNotExist, [path]), path);
MSBuild (1)
src\msbuild\src\Shared\TypeLoader.cs (1)
255throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation);
NuGet.PackageManagement (1)
Utility\PackagesConfigLockFileUtility.cs (1)
293throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Strings.Error_FileDoesNotExist, pcFile), pcFile);
PresentationCore (2)
MS\Internal\FontCache\FontCacheUtil.cs (1)
748throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName);
System\Windows\Media\ColorContext.cs (1)
529throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath);
System.Console (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
22throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, _fileName), _fileName);
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
160throw new FileNotFoundException(message: null, fileName: filePath);
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
34return new FileNotFoundException(
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.Private.CoreLib (6)
Internal\Runtime\TypeLoaderExceptionHelper.cs (1)
49throw new System.IO.FileNotFoundException(SR.Format(GetFormatString(id), fileName), fileName);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1082throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, fullSourceFileName), fullSourceFileName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (2)
40throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullPath), FullPath); 189throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullName), FullName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
292throw new FileNotFoundException(SR.Format(SR.FileNotFound_LoadFile, normalizedPath), normalizedPath);
System.Private.Xml (1)
System\Xml\Serialization\Compilation.cs (1)
211throw new FileNotFoundException(null, serializerName);
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
34return new FileNotFoundException(
System.Windows.Extensions (3)
System\Media\SoundPlayer.cs (3)
145throw new FileNotFoundException(SR.SoundAPIFileDoesNotExist, _soundLocation); 195throw new FileNotFoundException(SR.SoundAPIFileDoesNotExist, _soundLocation); 544throw new FileNotFoundException(SR.SoundAPIFileDoesNotExist, _soundLocation);