75 instantiations of DirectoryNotFoundException
aspire (2)
src\Shared\BundleVersionLease.cs (1)
101throw new DirectoryNotFoundException($"Bundle version directory '{fullVersionDirectory}' does not exist.");
Utils\FileSystemHelper.cs (1)
57throw new DirectoryNotFoundException($"Source directory not found: {sourceDir}");
aspire-managed (1)
src\Shared\BundleVersionLease.cs (1)
101throw new DirectoryNotFoundException($"Bundle version directory '{fullVersionDirectory}' does not exist.");
Aspire.Acquisition.Tests (2)
Scripts\Common\ScriptHostFixture.cs (1)
41throw new DirectoryNotFoundException($"Scripts directory not found: {_scriptsDirectory}");
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
260throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
Aspire.Cli.EndToEnd.Tests (3)
tests\Shared\CliInstallStrategy.cs (3)
358throw new DirectoryNotFoundException($"LocalArchive directory not found: {archiveDir}"); 402throw new DirectoryNotFoundException($"Nupkg source directory not found: {nupkgSourcePath}"); 421throw new DirectoryNotFoundException($"Nupkg source directory not found: {nupkgSourcePath}");
Aspire.Deployment.EndToEnd.Tests (3)
tests\Shared\CliInstallStrategy.cs (3)
358throw new DirectoryNotFoundException($"LocalArchive directory not found: {archiveDir}"); 402throw new DirectoryNotFoundException($"Nupkg source directory not found: {nupkgSourcePath}"); 421throw new DirectoryNotFoundException($"Nupkg source directory not found: {nupkgSourcePath}");
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
260throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
260throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
dotnet-svcutil-lib (1)
Metadata\MetadataFileNameManager.cs (1)
248throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrDirectoryNotFoundFormat, dirInfo.FullName));
Infrastructure.Tests (3)
PowerShellScripts\PowerShellCommand.cs (1)
246throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
Shared\RepoRoot.cs (1)
34throw new DirectoryNotFoundException(
WorkflowScripts\NodeCommand.cs (1)
225throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
Microsoft.AspNetCore.Http (1)
parent\parent\WebUtilities\src\AspNetCoreTempDirectory.cs (1)
24throw new DirectoryNotFoundException(temp);
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\DeploymentParameters.cs (1)
59throw new DirectoryNotFoundException($"Application path {applicationPath} does not exist.");
Deployers\ApplicationDeployer.cs (1)
48throw new DirectoryNotFoundException($"Application path {DeploymentParameters.ApplicationPath} does not exist.");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
275throw new DirectoryNotFoundException(
Microsoft.AspNetCore.WebUtilities (1)
AspNetCoreTempDirectory.cs (1)
24throw new DirectoryNotFoundException(temp);
Microsoft.Build.Tasks.Core (1)
Exec.cs (1)
560throw new DirectoryNotFoundException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Exec.InvalidWorkingDirectory", _workingDirectory.OriginalValue));
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
177HandleException(ExceptionDispatchInfo.Capture(new DirectoryNotFoundException(error.ToString())));
Microsoft.Extensions.Configuration.KeyPerFile (2)
KeyPerFileConfigurationProvider.cs (2)
80throw new DirectoryNotFoundException("A non-null file provider for the directory is required when this source is not optional."); 92throw new DirectoryNotFoundException("The root directory for the FileProvider doesn't exist and is not optional.");
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
940current = Path.GetDirectoryName(current) ?? throw new DirectoryNotFoundException(SR.Format(SR.RootDirectoryMissing, current));
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
34throw new DirectoryNotFoundException("Could not find the ML.NET repository");
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
63Return New IO.DirectoryNotFoundException(GetResourceString(resourceKey, placeHolders))
NuGet.PackageManagement (1)
Utility\PackagesConfigLockFileUtility.cs (1)
305throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture, Strings.Error_DirectoryDoesNotExist, packagesFolderPath));
PresentationCore (1)
MS\Internal\FontCache\FontCacheUtil.cs (1)
751throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName));
System.Console (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (1)
38throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFound, value), value);
System.Formats.Tar (10)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System\Formats\Tar\TarFile.cs (8)
70throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName); 138return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName)); 193throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName); 256return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName)); 312throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName); 380return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName)); 443throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName); 512return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName));
System.IO.FileSystem.AccessControl (3)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
38return new DirectoryNotFoundException(
System\Security\AccessControl\FileSystemSecurity.cs (2)
49exception = new DirectoryNotFoundException(null, name); 51exception = new DirectoryNotFoundException();
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.FileSystem.Watcher (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System\IO\FileSystemWatcher.cs (1)
408=> new DirectoryNotFoundException(SR.Format(SR.FSW_WatchedDirectoryDeletedOrMoved, directoryPath));
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
363throw new DirectoryNotFoundException(SR.Format(SR.PathNotFound_Path, sourceDirectoryName), sourceDirectoryName);
System.IO.MemoryMappedFiles (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.Pipes (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.Ports (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
280throw new DirectoryNotFoundException(fnfe.Message, dirname);
System.Private.CoreLib (10)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
186throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, directoryPath), directoryPath);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
421throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath), sourceFullPath); 457throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath), sourceFullPath);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (1)
410throw new DirectoryNotFoundException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
763return new System.IO.DirectoryNotFoundException(); 892return new System.IO.DirectoryNotFoundException
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.cs (1)
123throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.cs (1)
144throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name));
System.Security.AccessControl (1)
System\Security\AccessControl\NativeObjectSecurity.cs (1)
130true => new DirectoryNotFoundException(null, name)
System.Threading.AccessControl (3)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
38return new DirectoryNotFoundException(
System\Threading\EventWaitHandleAcl.cs (1)
100throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name));
System\Threading\MutexAcl.cs (1)
91throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name));
TypeScriptApiCompat (1)
AtsSurface.cs (1)
41throw new DirectoryNotFoundException($"Surface directory '{rootPath}' does not exist.");
232 references to DirectoryNotFoundException
aspire (7)
Program.cs (1)
1022catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or DirectoryNotFoundException or ArgumentException or NotSupportedException)
src\Shared\BundleVersionLease.cs (1)
196catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\HeldFileLease.cs (2)
116catch (DirectoryNotFoundException) 213catch (DirectoryNotFoundException)
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Utils\ReparsePoint.cs (2)
203catch (DirectoryNotFoundException) 241catch (DirectoryNotFoundException)
aspire-managed (4)
Program.cs (1)
15catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or DirectoryNotFoundException or ArgumentException or NotSupportedException)
src\Shared\BundleVersionLease.cs (1)
196catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\HeldFileLease.cs (2)
116catch (DirectoryNotFoundException) 213catch (DirectoryNotFoundException)
Aspire.Cli.EndToEnd.Tests (3)
Helpers\CliInstallStrategyTests.cs (2)
767Assert.Throws<DirectoryNotFoundException>(() => 902Assert.Throws<DirectoryNotFoundException>(() =>
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Cli.Tests (2)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Utils\FileSystemHelperTests.cs (1)
95Assert.Throws<DirectoryNotFoundException>(() =>
Aspire.Dashboard.Components.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Dashboard.Tests (3)
Integration\StartupTests.cs (2)
319var ex = await Assert.ThrowsAsync<DirectoryNotFoundException>(async () =>
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Hosting (2)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
138/// <exception cref="DirectoryNotFoundException">Thrown when the specified path does not exist.</exception>
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Hosting.Dotnet (8)
DotnetProjectBuildArtifactManager.cs (4)
218catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException) 306catch (DirectoryNotFoundException) 361catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException) 516catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException)
DotnetProjectBuildEnvironmentCallbackAnnotation.cs (1)
113catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException)
src\Shared\HeldFileLease.cs (2)
116catch (DirectoryNotFoundException) 213catch (DirectoryNotFoundException)
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
3105catch (Exception ex) when (ex is DirectoryNotFoundException or FileNotFoundException or IOException or UnauthorizedAccessException)
Aspire.Hosting.Java (1)
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.JavaScript (1)
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Maui (1)
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Hosting.Rust (1)
src\Shared\PathNormalizer.cs (1)
324catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Sdk.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Hosting.TestUtilities (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.Managed.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Aspire.TerminalHost.Tests (1)
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Infrastructure.Tests (2)
Shared\RepoRoot.cs (1)
14/// Absolute path to the repository root. Throws <see cref="DirectoryNotFoundException"/>
tests\Shared\TemporaryWorkspace.cs (1)
89catch (DirectoryNotFoundException)
Microsoft.AspNetCore.StaticFiles (2)
HtmlDirectoryFormatter.cs (2)
147catch (DirectoryNotFoundException) 184catch (DirectoryNotFoundException)
Microsoft.Build (5)
BackEnd\Node\OutOfProcNode.cs (1)
743catch (DirectoryNotFoundException)
BackEnd\Shared\BuildRequestConfiguration.cs (3)
539catch (DirectoryNotFoundException) 844catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException) 883catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException)
Logging\ProfilerLogger.cs (1)
301DirectoryNotFoundException or
Microsoft.Build.Tasks.Core (1)
ManifestUtil\XmlUtil.cs (1)
185catch (DirectoryNotFoundException)
Microsoft.Build.Tasks.Git (3)
GitDataReader\GitConfig.Reader.cs (1)
211catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
GitDataReader\GitIgnore.cs (1)
115catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
GitDataReader\GitReferenceResolver.cs (1)
370catch (Exception e) when (e is ArgumentException or FileNotFoundException or DirectoryNotFoundException)
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (1)
506if (e is FileNotFoundException || e is DirectoryNotFoundException)
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (2)
175catch (DirectoryNotFoundException) 211catch (DirectoryNotFoundException)
FileSystem\ICommonCompilerFileSystem.cs (1)
38catch (DirectoryNotFoundException e)
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\DebuggingSession.cs (1)
293catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
91catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
430catch (DirectoryNotFoundException) 620catch (Exception e) when (fileMayNotExist && e is FileNotFoundException or DirectoryNotFoundException)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
153if (e is FileNotFoundException || e is DirectoryNotFoundException)
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (2)
175catch (DirectoryNotFoundException) 211catch (DirectoryNotFoundException)
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
225e is IOException && !(e is DirectoryNotFoundException || e is PathTooLongException) ||
Microsoft.DotNet.HotReload.Watch (1)
FileWatcher\PollingDirectoryWatcher.cs (1)
143catch (DirectoryNotFoundException)
Microsoft.Extensions.Configuration.FileExtensions (4)
FileConfigurationProvider.cs (4)
107catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException) 110HandleLoadingNonExisting(reload, file, ex is DirectoryNotFoundException); 156/// <see cref="DirectoryNotFoundException"/> is thrown on error.</param> 185/// <exception cref="DirectoryNotFoundException">Optional is <c>false</c> on the source and a
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Linux\Disk\LinuxSystemDiskMetrics.cs (1)
175ex is DirectoryNotFoundException ||
Linux\LinuxUtilizationProvider.cs (1)
334ex is System.IO.DirectoryNotFoundException ||
Linux\Network\LinuxNetworkMetrics.cs (1)
103ex is DirectoryNotFoundException ||
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\LinuxNetworkMetricsTests.cs (1)
67[InlineData(typeof(DirectoryNotFoundException))]
Microsoft.Extensions.FileProviders.Physical (5)
PhysicalDirectoryInfo.cs (1)
100catch (Exception ex) when (ex is DirectoryNotFoundException or IOException)
PhysicalFileProvider.cs (1)
326catch (DirectoryNotFoundException)
PhysicalFilesWatcher.cs (3)
362catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 392if (error is InternalBufferOverflowException or DirectoryNotFoundException) 589catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException)
Microsoft.Extensions.FileSystemGlobbing (1)
Abstractions\DirectoryInfoWrapper.cs (1)
47catch (DirectoryNotFoundException)
Microsoft.NET.Build.Containers (1)
Registry\Registry.cs (1)
425catch (DirectoryNotFoundException)
Microsoft.VisualBasic.Forms (29)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (3)
54''' Returns a new instance of <see cref="IO.DirectoryNotFoundException"/> with the message from resource file. 58''' <returns>A new instance of <see cref="IO.DirectoryNotFoundException"/>.</returns> 61ParamArray placeHolders() As String) As IO.DirectoryNotFoundException
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (1)
55TypeOf ex Is DirectoryNotFoundException OrElse
Microsoft\VisualBasic\MyServices\FileSystemProxy.vb (17)
98''' <exception cref="IO.DirectoryNotFoundException">The source directory does not exist.</exception> 131''' <exception cref="IO.DirectoryNotFoundException">The source directory does not exist.</exception> 166''' <exception cref="IO.DirectoryNotFoundException">The source directory does not exist.</exception> 205''' <exception cref="IO.DirectoryNotFoundException">The source directory does not exist.</exception> 393''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist or is a file.</exception> 428''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist or is a file.</exception> 467''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist or is a file.</exception> 623''' <exception cref="IO.DirectoryNotFoundException">The <paramref name="directory"/> does not exist.</exception> 664''' <exception cref="IO.DirectoryNotFoundException">The <paramref name="directory"/> does not exist.</exception> 696''' <exception cref="IO.DirectoryNotFoundException">The source directory does not exist.</exception> 808''' <exception cref="IO.DirectoryNotFoundException">The directory to search does not exist</exception> 839''' <exception cref="IO.DirectoryNotFoundException">The directory to search does not exist</exception> 919''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist.</exception> 953''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist.</exception> 990''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist.</exception> 1030''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist.</exception> 1413''' <exception cref="IO.DirectoryNotFoundException">The directory does not exist.</exception>
Microsoft\VisualBasic\MyServices\SpecialDirectoriesProxy.vb (8)
29''' <exception cref="DirectoryNotFoundException"> 52''' <exception cref="DirectoryNotFoundException"> 70''' <exception cref="DirectoryNotFoundException"> 88''' <exception cref="DirectoryNotFoundException"> 106''' <exception cref="DirectoryNotFoundException"> 124''' <exception cref="DirectoryNotFoundException"> 142''' <exception cref="DirectoryNotFoundException"> 160''' <exception cref="DirectoryNotFoundException">
mscorlib (1)
parent\ref\mscorlib.cs (1)
314[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.DirectoryNotFoundException))]
netstandard (1)
netstandard.cs (1)
902[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.DirectoryNotFoundException))]
NuGet.Common (5)
ConcurrencyUtilities.cs (2)
77catch (DirectoryNotFoundException) 169catch (DirectoryNotFoundException)
LocalResourceUtils.cs (3)
27catch (DirectoryNotFoundException) 48catch (DirectoryNotFoundException) 76catch (DirectoryNotFoundException)
NuGet.Configuration (1)
Utility\FileSystemUtility.cs (1)
90catch (DirectoryNotFoundException)
NuGet.PackageManagement (3)
Utility\FileSystemUtility.cs (3)
200catch (DirectoryNotFoundException) 437catch (DirectoryNotFoundException) 457catch (DirectoryNotFoundException)
NuGet.Packaging (3)
PackageExtraction\PackagePathHelper.cs (2)
38catch (DirectoryNotFoundException) 59catch (DirectoryNotFoundException)
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (1)
55ex is DirectoryNotFoundException
NuGet.Protocol (2)
Plugins\PluginDiscoverer.cs (1)
285catch (DirectoryNotFoundException) { }
Utility\LocalFolderUtility.cs (1)
788catch (DirectoryNotFoundException)
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
272(exception is System.IO.DirectoryNotFoundException))
rzc (1)
ShadowCopyManager.cs (1)
132catch (DirectoryNotFoundException)
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
145if (retryCount == 0 || ex is DirectoryNotFoundException)
System.ComponentModel.Composition (9)
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (9)
61/// <exception cref="DirectoryNotFoundException"> 100/// <exception cref="DirectoryNotFoundException"> 138/// <exception cref="DirectoryNotFoundException"> 181/// <exception cref="DirectoryNotFoundException"> 219/// <exception cref="DirectoryNotFoundException"> 263/// <exception cref="DirectoryNotFoundException"> 312/// <exception cref="DirectoryNotFoundException"> 366/// <exception cref="DirectoryNotFoundException"> 563/// <exception cref="DirectoryNotFoundException">
System.Configuration.ConfigurationManager (1)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
145if (retryCount == 0 || ex is DirectoryNotFoundException)
System.Diagnostics.Process (1)
System\Diagnostics\Process.Linux.cs (1)
121catch (DirectoryNotFoundException) // Occurs when the process is deleted between the Exists check and the GetFiles call.
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (1)
27/// <exception cref="DirectoryNotFoundException">The directory does not exist.</exception>
System.Formats.Tar (16)
System\Formats\Tar\TarFile.cs (16)
34/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 54/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 96/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 118/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 160/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 178/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 217/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 237/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 271/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 291/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 333/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 355/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 399/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 418/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 462/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 483/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception>
System.IO.Compression.ZipFile (53)
System\IO\Compression\ZipFile.Create.Async.cs (9)
23/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 48/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 88/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 204/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> 249/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 298/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 362/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 390/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 421/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFile.Create.cs (9)
21/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 43/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 80/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 191/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> 233/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 279/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 339/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 365/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 393/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFile.Extract.Async.cs (10)
28/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 63/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 99/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 156/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 224/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 294/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 326/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 366/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 407/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 463/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFile.Extract.cs (10)
26/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 58/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 91/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 145/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 207/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 267/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 296/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 333/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 371/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 419/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (4)
31/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception> 59/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid.</exception> 92/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception> 122/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (3)
31/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception> 62/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception> 108/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
24/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception> 57/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
22/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception> 52/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
23/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid (for example, it is on 52/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
20/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid (for example, it is on 48/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid
System.IO.FileSystem.AccessControl (3)
System\IO\FileSystemAclExtensions.cs (3)
103/// <exception cref="DirectoryNotFoundException">Could not find a part of the path.</exception> 130/// <exception cref="DirectoryNotFoundException">Could not find a part of the path.</exception> 200/// <exception cref="DirectoryNotFoundException">Could not find a part of the path.</exception>
System.IO.FileSystem.Watcher (2)
System\IO\FileSystemWatcher.cs (1)
407private static DirectoryNotFoundException CreateWatchedDirectoryDeletedOrMovedException(string directoryPath)
System\IO\FileSystemWatcher.Linux.cs (1)
1205catch (DirectoryNotFoundException)
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
361catch (DirectoryNotFoundException)
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (7)
672/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 705/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 778/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 804/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 828/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 985/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 1018/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (1)
139/// If the path doesn't exist as of the last cached state, the return value is `(UnixFileMode)(-1)`. <see cref="FileNotFoundException"/> or <see cref="DirectoryNotFoundException"/> can only be thrown when setting the value.
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
125catch (DirectoryNotFoundException ex)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
295[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.DirectoryNotFoundException))]
System.Threading.AccessControl (3)
System\Threading\EventWaitHandleAcl.cs (2)
24/// <exception cref="DirectoryNotFoundException">Could not find a part of the path specified in <paramref name="name" />.</exception> 86/// <exception cref="DirectoryNotFoundException">The path was not found.</exception>
System\Threading\MutexAcl.cs (1)
77/// <exception cref="DirectoryNotFoundException">The path was not found.</exception>