15 types derived from IOException
Microsoft.AspNetCore.Connections.Abstractions (1)
Exceptions\ConnectionResetException.cs (1)
12public class ConnectionResetException : IOException
Microsoft.AspNetCore.Http.Abstractions (1)
BadHttpRequestException.cs (1)
9public class BadHttpRequestException : IOException
Mono.Cecil.Pdb (2)
Microsoft.Cci.Pdb\PdbDebugException.cs (1)
8internal class PdbDebugException : IOException {
Microsoft.Cci.Pdb\PdbException.cs (1)
8internal class PdbException : IOException {
System.IO.Compression (1)
System\IO\Compression\DeflateZLib\ZLibException.cs (1)
14public class ZLibException : IOException, ISerializable
System.IO.FileSystem.DriveInfo (1)
System\IO\DriveNotFoundException.cs (1)
12public class DriveNotFoundException : IOException
System.Net.Http (2)
System\Net\Http\HttpIOException.cs (1)
11public class HttpIOException : IOException
System\Net\Http\SocketsHttpHandler\SocksException.cs (1)
8internal sealed class SocksException : IOException
System.Net.Quic (1)
System\Net\Quic\QuicException.cs (1)
11public sealed class QuicException : IOException
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (1)
18public class DirectoryNotFoundException : IOException
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (1)
12public class EndOfStreamException : IOException
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
12public partial class FileLoadException : IOException
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
14public partial class FileNotFoundException : IOException
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathTooLongException.cs (1)
12public class PathTooLongException : IOException
System.ServiceModel.NetNamedPipe (1)
System\IO\PipeException.cs (1)
9public class PipeException : IOException
477 instantiations of IOException
aspire (1)
Utils\ReparsePoint.cs (1)
88throw new IOException(
Aspire.Cli.EndToEnd.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Cli.Tests (17)
Agents\AspireSkillsInstallerTests.cs (1)
72var exception = new IOException("Cache lock failed.", hresult);
BundleServiceTests.cs (2)
173var exception = new IOException("Directory move failed.", hresult); 187var exception = new IOException("Directory move failed.", unchecked((int)0x80070020));
Certificates\CertificateServiceTests.cs (1)
289ExportDevCertificatePublicPemCallback = (_) => throw new IOException("Disk full")
Commands\AppHostLauncherTests.cs (4)
139WaitForAppHostReadyHandler = _ => throw new IOException("connection lost") 457WaitForAppHostReadyHandler = _ => throw new IOException("connection lost") 532throw new IOException("model unavailable"); 596GetResourceSnapshotsHandler = _ => throw new IOException("model unavailable")
Commands\DoctorCommandTests.cs (2)
388GetAppHostFromSettingsAsyncCallback = _ => throw new IOException("settings lookup failed") 919discoverAllException: new IOException("PATH lookup failed")));
Commands\PsCommandTests.cs (1)
533DisplayRawTextCallback = _ => throw new IOException("Broken pipe")
Commands\RunCommandTests.cs (1)
1426throw new IOException("Dashboard URL handler threw.");
Packaging\PackagingServiceTests.cs (1)
1702processPathProvider: () => throw new IOException("Process path unavailable."));
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Utils\ConsoleActivityLoggerTests.cs (1)
567throw new IOException("Simulated legacy cursor visibility failure.");
Utils\DevCertsCheckTests.cs (1)
689new TestProcessExecution(fileName, args, env, options, (_, _, _) => throw new IOException("openssl pipe failed"), () => 1)
Aspire.Deployment.EndToEnd.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.Browsers (1)
BrowserLogsArtifacts.cs (1)
93throw new IOException($"Unable to create a unique browser-log command artifact file under '{directory}'.");
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsArtifacts.cs (1)
93throw new IOException($"Unable to create a unique browser-log command artifact file under '{directory}'.");
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.RemoteHost.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.Sdk.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.Tests (1)
Orchestrator\ParameterProcessorTests.cs (1)
1688throw new IOException("Failed to delete section.");
Aspire.Hosting.TestUtilities (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Managed.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.TerminalHost.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRServiceModel.SFxStreamIOException, ex));
Metadata\MetadataDocumentSaver.cs (1)
74throw new IOException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrFileAlreadyExistsFormat, fileInfo.FilePath));
GenerateDocumentationAndConfigFiles (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
ILCompiler.Compiler (2)
Compiler\ReachabilityInstrumentationFilter.cs (2)
36throw new IOException("Invalid header"); 48throw new IOException("Unexpected end of file");
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
180throw new IOException("Failed to initialize JIT");
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
180throw new IOException("Failed to initialize JIT");
Infrastructure.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\BrowserFileFromFormFile.cs (1)
24throw new IOException($"Supplied file with size {Size} bytes exceeds the maximum of {maxAllowedSize} bytes.");
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\BrowserFile.cs (1)
40throw new IOException($"Supplied file with size {Size} bytes exceeds the maximum of {maxAllowedSize} bytes.");
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
73throw new IOException($"Protocol error: did not get the expected length preceding a message, " +
Microsoft.AspNetCore.Server.HttpSys (8)
RequestProcessing\RequestStream.cs (2)
147Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 268Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\RequestStreamAsyncResult.cs (2)
79asyncResult.Fail(new IOException(string.Empty, new HttpSysException((int)errorCode))); 89asyncResult.Fail(new IOException(string.Empty, e));
RequestProcessing\ResponseBody.cs (3)
169var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 385Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 713var exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245var exception = new IOException(string.Empty, new HttpSysException((int)errorCode));
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\AddressBinder.cs (1)
94throw new IOException(CoreStrings.FormatEndpointAlreadyInUse(endpoint), ex);
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
508throw new IOException(CoreStrings.BadRequest_BadChunkSizeData, ex);
Internal\Http2\Http2Connection.cs (2)
352AbortStream(_incomingFrame.StreamId, new IOException(ex.Message, ex)); 461stream.Abort(new IOException(CoreStrings.Http2StreamAborted, connectionError));
Internal\Http2\Http2Stream.cs (1)
575Abort(new IOException(CoreStrings.HttpStreamResetByClient));
Internal\Http3\Http3Stream.cs (2)
676stream.AbortCore(new IOException(CoreStrings.HttpStreamResetByClient), (Http3ErrorCode)errorCode); 744AbortCore(new IOException(CoreStrings.HttpStreamResetByClient, ex), (Http3ErrorCode)resolvedErrorCode);
LocalhostListenOptions.cs (1)
72throw new IOException(CoreStrings.FormatAddressBindingFailed(GetDisplayName()), new AggregateException(exceptions));
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (3)
Connection\DirectTlsConnection.cs (1)
278error = new IOException($"SSL_read failed with {bytesRead}");
TlsEventPump.cs (2)
509conn.OnError(new IOException("Connection error or hangup (EPOLLERR/EPOLLHUP)")); 520conn.OnError(new IOException("Peer closed connection"));
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1812var ex = new IOException("The server disconnected before the handshake could be started.");
Microsoft.AspNetCore.SignalR.Core (2)
DefaultHubLifetimeManager.cs (2)
342throw new IOException($"Connection '{connectionId}' does not exist."); 377throw new IOException($"Connection '{connectionId}' disconnected.");
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
403throw new IOException($"Connection '{connectionId}' does not exist."); 430throw new IOException($"Connection '{connectionId}' disconnected.");
Microsoft.AspNetCore.TestHost (6)
HttpContextBuilder.cs (1)
180_responseReaderStream.Abort(new IOException("The client aborted the request."));
ResponseBodyPipeWriter.cs (2)
47_pipe.Writer.Complete(new IOException(string.Empty, innerException)); 66throw new IOException("The request was aborted or the pipeline has finished.");
ResponseBodyReaderStream.cs (1)
133throw new IOException(string.Empty, _abortException);
TestWebSocket.cs (2)
286throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(TestWebSocket).FullName)); 336throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(TestWebSocket).FullName));
Microsoft.AspNetCore.WebUtilities (8)
FileBufferingReadStream.cs (2)
271throw new IOException("Buffer limit exceeded."); 348throw new IOException("Buffer limit exceeded.");
FileBufferingWriteStream.cs (2)
115throw new IOException("Buffer limit exceeded."); 154throw new IOException("Buffer limit exceeded.");
MultipartReaderStream.cs (4)
176throw new IOException("Unexpected end of Stream, the content may have already been read by another component. "); 240throw new IOException("Unexpected data found on the boundary line."); 260throw new IOException("Unexpected end of Stream, the content may have already been read by another component. "); 330throw new IOException("Unexpected data found on the boundary line.");
Microsoft.Build.Framework (2)
BackEnd\InterningBinaryReader.cs (1)
89throw new IOException();
FileUtilities_TempFiles.cs (1)
206throw new IOException(SR.FormatFailedCreatingTempFile(ex.Message), ex);
Microsoft.Build.Tasks.Core (5)
Move.cs (1)
316throw new IOException("Moving target is read-only");
src\msbuild\src\Shared\NodePipeBase.cs (4)
121throw new IOException($"Incomplete header read. {headerBytesRead} of {HeaderLength} bytes read."); 134throw new IOException($"Incomplete packet read. {packetBytesRead} of {packetLength} bytes read."); 171throw new IOException($"Incomplete header read. {headerBytesRead} of {HeaderLength} bytes read."); 184throw new IOException($"Incomplete packet read. {packetBytesRead} of {packetLength} bytes read.");
Microsoft.Build.Tasks.Git (3)
GitDataReader\GitConfig.Reader.cs (1)
217throw new IOException(e.Message, e);
GitDataReader\GitReferenceResolver.cs (1)
388throw new IOException(e.Message, e);
GitDataReader\GitRepository.cs (1)
436throw new IOException(e.Message, e);
Microsoft.CodeAnalysis (17)
EmbeddedText.cs (1)
222throw new IOException(CodeAnalysisResources.StreamIsTooLong);
FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
FileSystem\ICommonCompilerFileSystem.cs (1)
48throw new IOException(e.Message, e);
StrongName\DesktopStrongNameProvider.cs (3)
158throw new IOException(ex.Message); 239throw new IOException(ex.Message, ex); 261throw new IOException(ex.Message, ex);
StrongName\StrongNameKeys.cs (1)
155throw new IOException(CodeAnalysisResources.InvalidPublicKey);
Text\SourceText.cs (1)
1357throw new IOException(CodeAnalysisResources.StreamIsTooLong);
Microsoft.CodeAnalysis.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Features (1)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
97throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Workspaces (11)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Workspace\Solution\FileTextLoader.cs (1)
224throw new IOException(message);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
56throw new IOException(string.Format(Strings.TemplateResourceNotFound, resourceName));
Microsoft.DotNet.XliffTasks (1)
ExponentialRetry.cs (1)
28throw new IOException($"Retry failed after {count} times", e);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
UnreliableL2Tests.cs (1)
184private static void Throw() => throw new IOException("L2 offline");
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
136throw new IOException($"Model file {_filePath} still got locked after 5 seconds, fail to reload.");
Microsoft.ML.Core (10)
Utilities\Contracts.cs (10)
394=> Process(new IOException()); 396=> Process(new IOException(), ctx); 398=> Process(new IOException(msg)); 400=> Process(new IOException(msg), ctx); 402=> Process(new IOException(GetMsg(msg, args))); 404=> Process(new IOException(GetMsg(msg, args)), ctx); 406=> Process(new IOException(msg, inner)); 408=> Process(new IOException(msg, inner), ctx); 410=> Process(new IOException(GetMsg(msg, args), inner)); 412=> Process(new IOException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.CpuMath (10)
src\Microsoft.ML.Core\Utilities\Contracts.cs (10)
394=> Process(new IOException()); 396=> Process(new IOException(), ctx); 398=> Process(new IOException(msg)); 400=> Process(new IOException(msg), ctx); 402=> Process(new IOException(GetMsg(msg, args))); 404=> Process(new IOException(GetMsg(msg, args)), ctx); 406=> Process(new IOException(msg, inner)); 408=> Process(new IOException(msg, inner), ctx); 410=> Process(new IOException(GetMsg(msg, args), inner)); 412=> Process(new IOException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
306throw new IOException($"File {path} too big to open.");
Microsoft.ML.TestFrameworkCommon (1)
TestDownloadUtils.cs (1)
40throw new IOException($"Expected {expectedLength.Value} bytes from '{url}', but downloaded {fileStream.Length} bytes.");
Microsoft.ML.Tokenizers (2)
Model\CodeGenTokenizer.cs (1)
1796throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Model\EnglishRobertaTokenizer.cs (1)
228throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Microsoft.NET.HostModel (1)
MachO\BinaryFormat\Blobs\CodeDirectoryBlob.cs (1)
167throw new IOException("Could not read all bytes");
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (1)
37throw new IOException(SRF.IO_StreamTooLong);
Microsoft.TemplateEngine.Utils (9)
FileSystemInfoExtensions.cs (1)
131throw new IOException($"Failed to combine paths, stack underflow at {string.Join("/", parts.Skip(i))}");
InMemoryFileSystem.cs (8)
128throw new IOException("Directory is not empty"); 426throw new IOException($"File already exists {targetPath}"); 798throw new IOException("File is currently locked for writing"); 806throw new IOException("File is currently locked for writing"); 833throw new IOException("File is currently locked for reading"); 838throw new IOException("File is currently locked for writing"); 846throw new IOException("File is currently locked for reading"); 851throw new IOException("File is currently locked for writing");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
273Return New IO.IOException(Description)
Microsoft.Win32.Registry (7)
Microsoft\Win32\RegistryKey.cs (6)
1025throw new IOException(SR.Arg_RegValueTooLarge); 1053throw new IOException(SR.Arg_RegValueTooLarge); 1105throw new IOException(SR.Arg_RegValueTooLarge); 1598throw new IOException(SR.Arg_RegKeyNotFound, errorCode); 1601throw new IOException(Interop.Kernel32.GetMessage(errorCode), errorCode); 1612_ => new IOException(Interop.Kernel32.GetMessage(errorCode), errorCode),
System\Security\AccessControl\RegistrySecurity.cs (1)
105exception = new IOException(SR.Arg_RegKeyNotFound);
NuGet.Protocol (1)
Utility\DownloadTimeoutStream.cs (1)
91throw new IOException(timeoutMessage, e);
PresentationCore (11)
MS\Internal\FontCache\FontCacheUtil.cs (5)
760throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode)); 776return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e); 833throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 849throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 853throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\WpfWebRequestHelper.cs (2)
226throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 242throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (3)
872return new System.IO.IOException(SR.Image_StreamRead, exceptionForHR); 875return new System.IO.IOException(SR.Image_InvalidQueryRequest, exceptionForHR); 884return new System.IO.IOException(SR.Image_InvalidQueryCharacter, exceptionForHR);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
168throw new IOException(SR.Image_CannotCreateTempFile);
PresentationFramework (8)
MS\Internal\AppModel\ContentFilePart.cs (1)
75throw new IOException(SR.Format(SR.UnableToLocateResource, Uri.ToString()));
MS\Internal\AppModel\ResourceContainer.cs (1)
305throw new IOException(SR.EntryAssemblyIsNull);
MS\Internal\AppModel\ResourcePart.cs (2)
62throw new IOException(SR.Format(SR.UnableToLocateResource, _name)); 118throw new IOException(SR.Format(SR.UnableToLocateResource, _name));
MS\Internal\IO\Packaging\ByteStream.cs (1)
153throw new IOException(SR.SeekFailed);
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
136throw new IOException(SR.StreamObjectDisposed);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (2)
110throw new IOException("Read", comException); 115throw new IOException("Read", ioException);
PresentationUI (4)
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (2)
192throw new IOException( 198throw new IOException(
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (2)
287throw new IOException( 293throw new IOException(
ReachFramework (1)
Packaging\XpsManager.cs (1)
1462throw new IOException(SR.ReachPackaging_CannotModifyReadOnlyContainer);
Roslyn.Diagnostics.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
System.Configuration.ConfigurationManager (1)
System\Configuration\Internal\InternalConfigHost.cs (1)
259throw new IOException(SR.Format(SR.Config_invalid_attributes_for_write, streamName));
System.Console (6)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
132throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceDataRegistryKey.cs (1)
129throw new IOException(Interop.Kernel32.GetMessage(errorCode), errorCode);
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
899throw new IOException(SR.IconCouldNotBeExtracted, ex);
System.Formats.Tar (16)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
261throw new IOException(SR.IO_SeekBeforeBegin);
System\Formats\Tar\GnuSparseStream.cs (1)
151throw new IOException(SR.IO_SeekBeforeBegin);
System\Formats\Tar\TarEntry.cs (7)
375throw new IOException(SR.Format(SR.TarExtractingResultsFileOutside, name, destinationDirectoryPath)); 389throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 396throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 411throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 643throw new IOException(SR.Format(SR.IO_PathNotFound_Path, filePath)); 654throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath)); 660throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath));
System\Formats\Tar\TarWriter.cs (1)
403throw new IOException(SR.Format(SR.TarStreamSeekabilityUnsupportedCombination, entry.Name));
System\Formats\Tar\TarWriter.Unix.cs (1)
59_ => throw new IOException(SR.Format(SR.TarUnsupportedFile, fullPath)),
System.IO.Compression (14)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
261throw new IOException(SR.IO_SeekBeforeBegin);
System\IO\Compression\ZipArchive.cs (1)
514throw new IOException(SR.CreateModeCreateEntryWhileOpen);
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
307throw new IOException(SR.UpdateModeOneStream); 349throw new IOException(SR.UpdateModeOneStream); 515throw new IOException(SR.UpdateModeOneStream);
System\IO\Compression\ZipArchiveEntry.cs (5)
374throw new IOException(SR.FrozenAfterWrite); 437throw new IOException(SR.DeleteOpenEntry); 1193throw new IOException(SR.CreateModeWriteOnceAndOneEntryAtATime); 1267throw new IOException(SR.UpdateModeOneStream); 1322throw new IOException(SR.UpdateModeOneStream);
System\IO\Compression\Zstandard\ZstandardDictionary.cs (2)
59throw new IOException(SR.ZstandardDictionary_CreateCompressionFailed); 68throw new IOException(SR.ZstandardDictionary_CreateDecompressionFailed);
System\IO\Compression\Zstandard\ZstandardUtils.cs (2)
70return new IOException(SR.ZstandardDecoder_WindowTooLarge); 82return new IOException(SR.Format(SR.Zstd_InternalError, GetErrorMessage(error)));
System.IO.Compression.Brotli (3)
System\IO\Compression\dec\BrotliDecoder.cs (1)
21throw new IOException(SR.BrotliDecoder_Create);
System\IO\Compression\enc\BrotliEncoder.cs (2)
29throw new IOException(SR.BrotliEncoder_Create); 44throw new IOException(SR.BrotliEncoder_Create);
System.IO.Compression.ZipFile (4)
System\IO\Compression\ZipFile.Create.Async.cs (1)
549throw new IOException(SR.Format(SR.ZipUnsupportedFile, fullPath));
System\IO\Compression\ZipFile.Create.cs (1)
498throw new IOException(SR.Format(SR.ZipUnsupportedFile, fullPath));
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
207throw new IOException(SR.IO_ExtractingResultsInOutside); 214throw new IOException(SR.IO_DirectoryNameWithData);
System.IO.FileSystem.AccessControl (4)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (4)
50return new IOException(SR.Format(SR.IO_AlreadyExists_Name, path), MakeHRFromErrorCode(errorCode)); 55return new IOException( 61return new IOException(SR.Format(SR.IO_FileExists_Name, path), MakeHRFromErrorCode(errorCode)); 77return new IOException(msg, MakeHRFromErrorCode(errorCode));
System.IO.FileSystem.DriveInfo (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System.IO.FileSystem.Watcher (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System\IO\FileSystemWatcher.Linux.cs (3)
161throw new IOException(message, error.RawErrno); 163throw new IOException(SR.IOException_INotifyInstanceSystemLimitExceeded, error.RawErrno); 279exc = new IOException(message, error.RawErrno);
System.IO.MemoryMappedFiles (6)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
79throw new IOException(exc.Message, exc);
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (1)
18throw new IOException(SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed);
System.IO.Packaging (6)
System\IO\Packaging\Package.cs (2)
807throw new IOException(SR.CannotModifyReadOnlyContainer); 814throw new IOException(SR.CannotRetrievePartsOfWriteOnlyContainer);
System\IO\Packaging\PackagePart.cs (3)
324throw new IOException(SR.NullStreamReturned); 696throw new IOException(SR.UnsupportedCombinationOfModeAccess); 701throw new IOException(SR.ContainerAndPartModeIncompatible);
System\IO\Packaging\ZipPackage.cs (1)
377throw new IOException(SR.CreateNewOnNonEmptyStream);
System.IO.Pipes (13)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System\IO\Error.cs (1)
36return new IOException(SR.IO_OperationAborted_Unexpected);
System\IO\Pipes\NamedPipeClientStream.cs (1)
228throw new IOException(SR.IO_PipeBroken);
System\IO\Pipes\NamedPipeServerStream.cs (1)
185throw new IOException(SR.IO_PipeBroken);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (2)
90throw new IOException(SR.IO_PipeBroken); 268throw new IOException(SR.IO_AllPipeInstancesAreBusy);
System\IO\Pipes\PipeStream.cs (1)
382throw new IOException(SR.IO_PipeBroken);
System\IO\Pipes\PipeStream.Unix.cs (2)
241throw new IOException(SR.IO_InvalidPipeHandle); 338return new IOException(e.Message, e);
System.IO.Ports (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
268throw new IOException(SR.net_http_http2_connection_not_established, _abortException ?? e); 2288innerException as HttpIOException ?? ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_http_request_aborted, innerException));
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (2)
156throw new IOException(SR.ObjectDisposed_StreamClosed); 175return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.ObjectDisposed_StreamClosed)));
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
363throw new IOException(SR.net_http_invalid_response_premature_eof);
System.Net.Http.WinHttpHandler (10)
System\Net\Http\WinHttpRequestCallback.cs (4)
190state.LifecycleAwaitable.SetException(new IOException(SR.Format( 489new IOException(SR.net_http_io_read, innerException)); 501state.LifecycleAwaitable.SetException(new IOException(SR.net_http_io_read, innerException)); 515new IOException(SR.net_http_io_write, innerException));
System\Net\Http\WinHttpRequestStream.cs (2)
237new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData)))); 258new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData))));
System\Net\Http\WinHttpResponseStream.cs (4)
126throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 143throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData))); 227throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 242throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData)));
System.Net.Mail (2)
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
92throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 282throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
System.Net.NameResolution (4)
System\Net\DnsResolverPal.Managed.cs (4)
774throw new IOException(SR.net_io_eof); 790throw new IOException(SR.net_io_eof); 804throw new IOException(); 818throw new IOException();
System.Net.Quic (2)
System\Net\Quic\QuicStream.Stream.cs (2)
133throw new IOException(SR.net_quic_timeout); 192throw new IOException(SR.net_quic_timeout);
System.Net.Security (24)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1381result == -1 && lastErrno.Error != Error.SUCCESS ? new IOException(lastErrno.GetErrorMessage(), lastErrno.RawErrno) : // underlying I/O error
System\Net\Security\NegotiateStream.cs (6)
376throw new IOException(SR.net_frame_read_size); 422throw new IOException(SR.net_io_read); 445throw new IOException(SR.net_io_read, e); 460throw new IOException(SR.net_io_eof); 546throw new IOException(SR.net_io_encrypt); 559throw new IOException(SR.net_io_write, e);
System\Net\Security\SslStream.IO.cs (8)
455throw new IOException(SR.net_io_eof); 754return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 789throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 861throw new IOException(SR.net_io_eof); 965throw new IOException(SR.net_ssl_io_renego); 976throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 1034throw new IOException(SR.net_io_read, e); 1082throw new IOException(SR.net_io_write, e);
System\Net\Security\TlsSession.cs (5)
902throw new IOException(SR.net_io_decrypt); 1190throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1254throw new IOException(SR.net_io_decrypt); 1325throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 1488throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(status));
System\Net\Security\TlsSession.OpenSsl.cs (2)
150throw new IOException(SR.net_ssl_read_bio_failed_error); 158throw new IOException(SR.net_io_decrypt);
System\Net\StreamFramer.cs (2)
44throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 63throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
System.Net.Sockets (6)
System\Net\Sockets\NetworkStream.cs (4)
55throw new IOException(SR.net_sockets_blocking); 59throw new IOException(SR.net_notconnected); 63throw new IOException(SR.net_notstream); 721return new IOException(SR.Format(resourceFormatString, innerException.Message), innerException);
System\Net\Sockets\Socket.Tasks.cs (2)
905new IOException(SR.Format(SR.net_io_readwritefailure, e.Message), e) : 1378new IOException(SR.Format(_isReadForCaching ? SR.net_io_readfailure : SR.net_io_writefailure, e.Message), e) :
System.Private.CoreLib (54)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
509throw new IOException(SR.Format(errorInfo.Error == Interop.Error.EFBIG
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (2)
239throw new IOException(SR.Arg_DecBitCtor, e); 251throw new IOException(SR.Format(SR.IO_InvalidStringLen_Len, stringLength));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
729throw new IOException(SR.IO_FileTooLong2GB); 1211return Task.FromException<byte[]>(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.IO_FileTooLong2GB)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.cs (1)
43throw new IOException(SR.IO_SourceDestMustBeDifferent);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (10)
59return new IOException(SR.Format(SR.Arg_FileIsDirectory_Name, path)); 146throw new IOException(SR.Format(SR.IO_CannotReplaceSameFile, sourceFullPath, destFullPath)); 409throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 434throw new IOException(SR.IO_SourceDestMustBeDifferent); 441throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 445throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, destFullPath)); 455throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, sourceFullPath), errorInfo.RawErrno); 459throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 565throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, fullPath)); 709throw new IOException(SR.Format(SR.IO_TooManySymbolicLinkLevels, linkPath));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (4)
131throw new IOException(SR.IO_StreamTooLong); 528throw new IOException(SR.IO_SeekBeforeBegin); 584throw new IOException(SR.IO_StreamTooLong); 635throw new IOException(SR.IO_StreamTooLong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
132throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (1)
175throw new IOException(SR.IO_SeekBeforeBegin);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (8)
46throw new IOException(SR.Argument_DirectorySeparatorInvalid); 442throw new IOException(SR.Format(SR.IO_SharedMemory_FileNotOwnedByUid, sharedMemoryFilePath, id.Uid)); 458throw new IOException(SR.Format(SR.IO_SharedMemory_FilePermissionsIncorrect, sharedMemoryFilePath, PermissionsMask_OwnerUser_ReadWrite)); 613throw new IOException(SR.Format(SR.IO_SharedMemory_PathExistsButNotDirectory, directoryPath)); 644throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryPermissionsIncorrect, directoryPath, fileStatus.Uid, Convert.ToString(fileStatus.Mode, 8))); 659throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryNotOwnedByUid, directoryPath, id.Uid)); 678throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryPermissionsIncorrectUserScope, directoryPath, Convert.ToString(fileStatus.Mode, 8))); 693throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryOwnerPermissionsIncorrect, directoryPath, Convert.ToString(fileStatus.Mode, 8)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (3)
162throw new IOException(SR.IO_SeekBeforeBegin); 169throw new IOException(SR.IO_SeekAppendOverwrite); 182throw new IOException(SR.IO_SetLengthAppendTruncate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
791throw new IOException(SR.IO_StreamTooLong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (2)
105throw new IOException(SR.IO_InvalidReadLength); 155throw new IOException(SR.IO_InvalidReadLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (7)
320throw new IOException(SR.IO_SeekBeforeBegin); 543throw new IOException(SR.IO_SeekBeforeBegin); 549throw new IOException(SR.IO_SeekBeforeBegin); 555throw new IOException(SR.IO_SeekBeforeBegin); 580throw new IOException(SR.IO_FixedCapacity); 637throw new IOException(SR.IO_StreamTooLong); 766throw new IOException(SR.IO_StreamTooLong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
59set => throw new IOException(SR.IO_FixedCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
177throw new IOException(SR.IO_SeekBeforeBegin);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
805return new System.IO.IOException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
136throw new IOException(SR.Format(SR.IO_PathNotFound_Path, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
40throw new IOException(SR.IO_UnseekableFile); 45throw new IOException(fs.Length == 0 ? SR.IO_InvalidReadLength : SR.IO_FileTooLong);
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
138throw new IOException(e.Message, e);
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRP.Format(SRP.SFxStreamIOException), ex));
System.Speech (1)
Internal\ResourceLoader.cs (1)
51throw new IOException(e.Message, e);
System.Threading.AccessControl (5)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (4)
50return new IOException(SR.Format(SR.IO_AlreadyExists_Name, path), MakeHRFromErrorCode(errorCode)); 55return new IOException( 61return new IOException(SR.Format(SR.IO_FileExists_Name, path), MakeHRFromErrorCode(errorCode)); 77return new IOException(msg, MakeHRFromErrorCode(errorCode));
System\Threading\SemaphoreAcl.cs (1)
106throw new IOException(SR.Format(SR.IO_PathNotFound_Path, name));
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (2)
124throw new IOException(SR.DataStreamWrite); 146throw new IOException(SR.DataStreamWrite);
1220 references to IOException
aspire (137)
Acquisition\InstallationCandidateSources.cs (2)
191catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 207catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Acquisition\InstallSidecarReader.cs (1)
201or IOException
Acquisition\IWindowsRegistryReader.cs (1)
111catch (Exception ex) when (ex is SecurityException or UnauthorizedAccessException or IOException)
Acquisition\PeerInstallProbe.cs (1)
365catch (Exception ex) when (ex is IOException or OperationCanceledException or ObjectDisposedException)
Acquisition\WingetFirstRunProbe.cs (2)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 98catch (IOException ex)
Agents\AspireSkills\AspireSkillsInstaller.cs (12)
262catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException) 360catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException) 628catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 716catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidOperationException) 875catch (IOException ex) when ( 907internal static bool IsCacheLockContention(IOException exception, bool isWindows) 978catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1003catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1053catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1111catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1151catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1163catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Agents\DeprecatedMcpCommandScanner.cs (1)
91catch (IOException ex)
Agents\Hooks\TelemetryHookConfigurator.cs (3)
146catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 166catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 289catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Agents\Hooks\TelemetryHookInstaller.cs (2)
85catch (IOException ex) 110catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException)
Agents\Playwright\PlaywrightCliInstaller.cs (4)
265catch (IOException ex) 294catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 351catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 385catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Agents\Playwright\PlaywrightCliRunner.cs (1)
147catch (IOException ex)
Bundles\BundleService.cs (11)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 370catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 386catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 436exception is IOException or UnauthorizedAccessException && 535catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 547catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 578catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 614catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 660catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 750catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 817catch (IOException)
Certificates\CertificateCacheWriter.cs (2)
50catch (IOException) when (File.Exists(outputPath)) 61catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
140catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException)
Commands\AgentInitCommand.cs (1)
746catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidOperationException)
Commands\AppHostLauncher.cs (1)
868catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Commands\CacheCommand.cs (2)
101catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 113catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Commands\PsCommand.cs (2)
253catch (IOException ex) 282catch (Exception ex) when (ex is IOException or ObjectDisposedException)
Commands\Sdk\SdkDumpCommand.cs (1)
366catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException or RemoteInvocationException or AppHostCodeGenerationException)
Commands\TerminalAttachCommand.cs (1)
199catch (IOException ex) when (ex.InnerException is SocketException)
Configuration\ConfigurationService.cs (1)
457catch (IOException)
Diagnostics\FileLoggerProvider.cs (1)
85catch (IOException ex)
DotNet\DotNetCliRunner.cs (2)
1433catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 1486catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Git\GitWorktree.cs (3)
313catch (IOException) 334catch (Exception ex) when (ex is ArgumentException or IOException or NotSupportedException) 415catch (IOException)
Npm\NpmRunner.cs (2)
196catch (IOException ex) 303catch (IOException)
NuGet\BundleNuGetService.cs (2)
271catch (Exception ex) when (ex is InvalidOperationException or JsonException or IOException or UnauthorizedAccessException) 335catch (IOException)
Packaging\PackageChannel.cs (2)
463catch (IOException ex) 771catch (IOException ex)
Processes\IsolatedProcess.cs (1)
546catch (IOException)
Program.cs (1)
1019catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or DirectoryNotFoundException or ArgumentException or NotSupportedException)
Projects\AppHostRpcClient.cs (1)
203catch (IOException)
Projects\AppHostServerClosureSnapshots.cs (2)
460catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 501catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\DotNetAppHostProject.cs (3)
260catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException) 909catch (Exception ex) when (ex is ArgumentException or PathTooLongException or NotSupportedException or IOException) 2038catch (IOException ex)
Projects\GeneratedFileWriter.cs (1)
41catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\GuestAppHostProject.cs (4)
1948catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1959catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1992catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2270catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException or NotSupportedException)
Projects\GuestRuntime.cs (3)
418catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 434/// Lazy on purpose: an <see cref="IOException"/> or <see cref="UnauthorizedAccessException"/> from 523catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\JavaAppHostToolchainResolver.cs (2)
259catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 472catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\PrebuiltAppHostServer.cs (3)
484catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException) 629catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 647catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\ProjectLocator.cs (1)
1359catch (Exception ex) when (ex is TimeoutException or IOException or UnauthorizedAccessException)
Projects\TypeScriptAppHostToolchainResolver.cs (2)
332catch (Exception ex) when (ex is JsonException or IOException 395catch (Exception ex) when (ex is IOException or UnauthorizedAccessException
src\Shared\BackchannelConstants.cs (1)
474catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\BundleVersionLease.cs (3)
209catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException) 236catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 248catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Telemetry\InternalMicrosoftDetector.cs (4)
320catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException) 355catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1018catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1139catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.cs (1)
370catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException)
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
119catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
101catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
101catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
115catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
99catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Tui\TerminalViewerApp.cs (2)
398catch (IOException) 621catch (IOException)
Utils\AppHostHelper.cs (1)
186catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\AspireAnsiConsoleOutput.cs (4)
93catch (Exception ex) when (ex is IOException or InvalidOperationException) 105catch (Exception ex) when (ex is IOException or InvalidOperationException) 132catch (IOException) 152catch (IOException)
Utils\CliHostEnvironment.cs (1)
172catch (IOException)
Utils\CliPathHelper.cs (1)
386=> ex is IOException
Utils\ConfigurationHelper.cs (1)
212catch (IOException)
Utils\ConsoleActivityLogger.cs (2)
176catch (IOException) 196catch (IOException)
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
79catch (IOException)
Utils\EnvironmentChecker\DevCertsCheck.cs (2)
317catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException) 402catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException)
Utils\EnvironmentChecker\VsCodeExtensionCheck.cs (1)
199catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (1)
228catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\FileDeleteHelper.cs (4)
39catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 78catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 116catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 128catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\FileLock.cs (1)
74catch (IOException)
Utils\FileSystemHelper.cs (2)
22catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 37catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\ProcessCaptureRunner.cs (1)
50catch (Exception ex) when (ex is System.ComponentModel.Win32Exception or InvalidOperationException or IOException)
Utils\ReparsePoint.cs (5)
121catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 139catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 172catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 211catch (IOException) 269catch (Exception ex) when (ex is UnauthorizedAccessException or IOException)
aspire-managed (5)
Program.cs (1)
15catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or DirectoryNotFoundException or ArgumentException or NotSupportedException)
src\Shared\BundleVersionLease.cs (3)
209catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException) 236catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 248catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Cli.EndToEnd.Tests (8)
Helpers\CliE2ETestHelpers.cs (2)
683catch (Exception ex) when (ex is HttpRequestException or TaskCanceledException or IOException) 770catch (Exception ex) when (ex is HttpRequestException or TaskCanceledException or IOException)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Cli.Tests (26)
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (1)
960catch (IOException)
Agents\AspireSkillsInstallerTests.cs (1)
72var exception = new IOException("Cache lock failed.", hresult);
Agents\TelemetryHookScriptTests.cs (1)
516catch (IOException)
Bundles\BundleServiceCrossRouteExtractionTests.cs (1)
102catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
BundleServiceTests.cs (2)
173var exception = new IOException("Directory move failed.", hresult); 187var exception = new IOException("Directory move failed.", unchecked((int)0x80070020));
Commands\AppHostLauncherTests.cs (2)
142var exception = await Assert.ThrowsAsync<IOException>(() => AppHostLauncher.WaitForAppHostReadyAsync(connection, CancellationToken.None)).DefaultTimeout();
Git\GitWorktreeTests.cs (3)
99catch (IOException ex) 156catch (IOException ex) 257catch (IOException ex)
Projects\AppHostServerSessionTests.cs (1)
463Assert.ThrowsAny<IOException>(() => factory.CreatePrebuiltAppHostServer(
Projects\AppHostWorkloadIdTests.cs (1)
104catch (IOException ex)
Projects\ProcessGuestLauncherTests.cs (1)
384catch (IOException)
Projects\ProjectLocatorTests.cs (1)
4048catch (IOException ex)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TestServices\ProcessTestHelpers.cs (1)
26catch (IOException)
Utils\FileSystemHelperTests.cs (1)
254Assert.Throws<IOException>(() =>
Utils\PathNormalizerTests.cs (1)
116catch (IOException ex)
Utils\ReparsePointTests.cs (2)
175catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 416catch (Exception ex) when (ex is UnauthorizedAccessException or IOException)
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
971catch (IOException ex) when (ContainsAddressInUse(ex)) 1012catch (IOException ex) when (ContainsAddressInUse(ex))
Aspire.Deployment.EndToEnd.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
258catch (IOException) when (!EnvironmentVariables.IsRunningOnCI) 269catch (IOException ioex)
Aspire.Hosting (23)
Backchannel\AuxiliaryBackchannelService.cs (1)
192catch (IOException ex) when (ex.InnerException is SocketException { SocketErrorCode: SocketError.ConnectionReset })
Dashboard\DashboardService.cs (1)
489catch (IOException) when (cts.Token.IsCancellationRequested)
Dcp\KubernetesService.cs (1)
547ShouldHandle = new PredicateBuilder().Handle<KubeConfigException>().Handle<YamlException>().Handle<IOException>(),
Devcontainers\DevcontainerSettingsWriter.cs (1)
260catch (IOException ex) when (ex.Message == $"The file '{path}' already exists.")
Lifecycle\TerminalHostOrphanCleanupService.cs (10)
173catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 194catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 280catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 382catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 399catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 422catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 454catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 473catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 492catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 504catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\BackchannelConstants.cs (1)
474catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TerminalResourceBuilderExtensions.cs (4)
200catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 343catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 357catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 369catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Azure (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Aspire.Hosting.Azure.Kubernetes (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Aspire.Hosting.Azure.Tests (1)
AzureResourceOptionsTests.cs (1)
57catch (IOException ex)
Aspire.Hosting.Browsers (11)
BrowserEndpointDiscovery.cs (4)
80catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException) 122catch (Exception ex) when (!cancellationToken.IsCancellationRequested && ex is HttpRequestException or IOException or JsonException or OperationCanceledException) 264catch (IOException) 283catch (IOException)
BrowserHost.cs (1)
239catch (IOException ex)
BrowserLogsArtifacts.cs (1)
80catch (IOException) when (attempt < 99 && File.Exists(filePath))
BrowserLogsConfigurationManager.cs (1)
237catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Text.Json.JsonException)
ChromiumBrowserResolver.cs (2)
92catch (IOException ex) 185catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Aspire.Hosting.Browsers.Tests (11)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (4)
80catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException) 122catch (Exception ex) when (!cancellationToken.IsCancellationRequested && ex is HttpRequestException or IOException or JsonException or OperationCanceledException) 264catch (IOException) 283catch (IOException)
src\Aspire.Hosting.Browsers\BrowserHost.cs (1)
239catch (IOException ex)
src\Aspire.Hosting.Browsers\BrowserLogsArtifacts.cs (1)
80catch (IOException) when (attempt < 99 && File.Exists(filePath))
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
237catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Text.Json.JsonException)
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (2)
92catch (IOException ex) 185catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportDetectionTests.cs (1)
94catch (IOException)
Aspire.Hosting.CodeGeneration.Rust.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Docker (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Aspire.Hosting.Dotnet (1)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
Aspire.Hosting.Java (11)
JavaBuildToolResolver.cs (1)
161catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
JavaDockerfileGenerator.cs (3)
789catch (IOException) 865catch (IOException) 963catch (IOException)
JavaHostingExtensions.cs (4)
1886catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2043catch (Exception ex) when (ex is XmlException or IOException or UnauthorizedAccessException) 2074catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2203catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException)
JavaVersionDetector.cs (2)
87catch (Exception ex) when (ex is System.Xml.XmlException or IOException or UnauthorizedAccessException) 211catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
Aspire.Hosting.Java.Tests (1)
TempJavaAppDirectory.cs (1)
90catch (IOException)
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (2)
2102catch (IOException) 2460catch (IOException)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
Aspire.Hosting.Kubernetes (2)
CertManagerExtensions.cs (1)
491catch (IOException) { /* best-effort cleanup */ }
KubernetesEnvironmentResource.cs (1)
1575catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Maui (2)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
243catch (System.IO.IOException)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
Aspire.Hosting.Radius (3)
Publishing\RadiusDeploymentPipelineStep.cs (1)
331catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Publishing\SealedSecretApplyStep.cs (1)
688catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Secrets\SealedSecretManifest.cs (1)
71catch (Exception ex) when (ex is IOException or PathTooLongException or UnauthorizedAccessException or NotSupportedException or ArgumentException)
Aspire.Hosting.RemoteHost (4)
IntegrationLoadContext.cs (1)
107catch (IOException ex)
JsonRpcServer.cs (2)
264catch (IOException ex) 270catch (IOException ex)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.RemoteHost.Tests (7)
JsonRpcAuthenticationTests.cs (1)
207catch (Exception ex) when (ex is IOException or SocketException or TimeoutException or OperationCanceledException)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Rust (2)
RustDockerfileGenerator.cs (1)
297catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (1)
175catch (IOException)
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (1)
1152catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException)
TempCrateDirectory.cs (1)
24catch (IOException)
Aspire.Hosting.Sdk.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Tasks (3)
CommandPathResolver.cs (1)
88catch (IOException)
ResolveAspireCliBundle.cs (1)
489return ex is IOException
ResolveAspireCliInvocation.cs (1)
205catch (Exception ex) when (ex is InvalidOperationException or IOException or UnauthorizedAccessException or System.ComponentModel.Win32Exception)
Aspire.Hosting.Tests (1)
WithTerminalTests.cs (1)
1029catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.TestUtilities (7)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\PersistentContainerTestHelpers.cs (1)
81catch (IOException)
Aspire.Managed.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Playground.Tests (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
258catch (IOException) when (!EnvironmentVariables.IsRunningOnCI) 269catch (IOException ioex)
Aspire.TerminalHost (5)
DcpUpstreamAdapter.cs (1)
327catch (Exception ex) when (ex is IOException
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TerminalHostControlListener.cs (1)
65catch (IOException)
TerminalReplica.cs (2)
587catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 620catch (IOException ex)
Aspire.TerminalHost.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.TestUtilities (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
Client.ClientBase.IntegrationTests (1)
SessionTests.cs (1)
196catch (System.IO.IOException)
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
460catch (IOException e)
csc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
416catch (Exception e) when (e is IOException || e is TimeoutException) 812catch (IOException)
dotnet (17)
AutomaticEncodingRestorer.cs (2)
38catch (Exception ex) when (ex is IOException || ex is SecurityException) 57catch (Exception ex) when (ex is IOException || ex is SecurityException)
BuildServer\BuildServerProvider.cs (1)
89catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
BuildServer\RazorServer.cs (1)
74catch (IOException)
Commands\Package\Add\PackageAddCommand.cs (1)
58catch (IOException ioex)
Commands\Test\MTP\ArtifactPostProcessingManager.cs (1)
204catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
445catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or FormatException)
ShellShim\ShellShimRepository.cs (2)
96catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException) 131catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\BuildServerConnection.cs (2)
416catch (Exception e) when (e is IOException || e is TimeoutException) 812catch (IOException)
Telemetry\DockerContainerDetectorForTelemetry.cs (2)
44catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
ToolPackage\ToolConfigurationDeserializer.cs (1)
65catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
ToolPackage\ToolPackageInstance.cs (2)
76catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException) 234catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException)
ToolPackage\ToolPackageUninstaller.cs (1)
41catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException)
dotnet-aot (3)
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (1)
327exception is IOException or
src\sdk\src\Cli\dotnet\Telemetry\DockerContainerDetectorForTelemetry.cs (2)
44catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
dotnet-format (1)
Workspaces\FolderWorkspace.cs (1)
69catch (IOException exception)
dotnet-svcutil-lib (11)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
223catch (IOException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (8)
516private Exception ConvertIOException(IOException ioException) 543catch (IOException ioException) 573catch (IOException ioException) 600catch (IOException ioException) 622catch (IOException ioException) 661catch (IOException ioException) 686catch (IOException ioException) 705catch (IOException ioException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
363catch (IOException ioException) 613catch (IOException ioException)
GenerateDocumentationAndConfigFiles (15)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
29/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception> 46/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception>
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
460catch (IOException e)
illink (1)
Infrastructure.Tests (9)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 245catch (IOException)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TestTriggerMap\SelectTestsCliTests.cs (1)
599Assert.ThrowsAny<IOException>(() =>
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
66catch (IOException ex)
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\IBrowserFile.cs (1)
55/// <exception cref="IOException">Thrown if the file's length exceeds the <paramref name="maxAllowedSize"/> value.</exception>
Microsoft.AspNetCore.DataProtection (1)
Repositories\FileSystemXmlRepository.cs (1)
166catch (IOException)
Microsoft.AspNetCore.Diagnostics (2)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
120if ((ex is OperationCanceledException || ex is IOException) && context.RequestAborted.IsCancellationRequested)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
117if ((edi.SourceException is OperationCanceledException || edi.SourceException is IOException) && context.RequestAborted.IsCancellationRequested)
Microsoft.AspNetCore.Http (2)
Extensions\HttpRequestRewindExtensions.cs (2)
53/// <see cref="System.IO.IOException"/>. 77/// <see cref="System.IO.IOException"/>.
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionDispatcher.cs (1)
690catch (IOException ex)
Internal\HttpConnectionManager.cs (2)
209catch (IOException ex) 213catch (WebSocketException ex) when (ex.InnerException is IOException)
Microsoft.AspNetCore.Http.Extensions (5)
_generated\0\LoggerMessage.g.cs (1)
610private static partial void RequestBodyIOException(global::Microsoft.Extensions.Logging.ILogger logger, global::System.IO.IOException exception)
RequestDelegateFactory.cs (4)
1415catch (IOException ex) 1569catch (IOException ex) 2727public static void RequestBodyIOException(HttpContext httpContext, IOException exception) 2731private static partial void RequestBodyIOException(ILogger logger, IOException exception);
Microsoft.AspNetCore.Identity (2)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (2)
1421catch (IOException ioException) 1551public void RequestBodyIOException(IOException exception)
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\FormFileValueProviderFactory.cs (1)
45catch (IOException ex)
ModelBinding\FormValueProviderFactory.cs (1)
47catch (IOException ex)
ModelBinding\JQueryFormValueProviderFactory.cs (1)
47catch (IOException ex)
Microsoft.AspNetCore.OpenApi (1)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (1)
284public void RequestBodyIOException(IOException exception)
Microsoft.AspNetCore.Server.HttpSys (7)
_generated\92\LoggerMessage.g.cs (1)
820public static partial void WriteError(global::Microsoft.Extensions.Logging.ILogger logger, global::System.IO.IOException exception)
RequestProcessing\RequestContextOfT.cs (2)
62if ((ex is OperationCanceledException || ex is IOException) && DisconnectToken.IsCancellationRequested) 97else if ((ex is OperationCanceledException || ex is IOException) && DisconnectToken.IsCancellationRequested)
RequestProcessing\ResponseBody.cs (3)
169var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 713var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 788public static partial void WriteError(ILogger logger, IOException exception);
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245var exception = new IOException(string.Empty, new HttpSysException((int)errorCode));
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContextOfT.cs (1)
47if ((ex is OperationCanceledException || ex is IOException) && ClientDisconnected)
Microsoft.AspNetCore.Server.Kestrel.Core (10)
AnyIPListenOptions.cs (1)
28catch (Exception ex) when (ex is not IOException
Internal\Http\HttpProtocol.cs (2)
614catch (IOException ex) 732if ((ex is OperationCanceledException || ex is IOException) && _connectionAborted)
Internal\Http2\Http2Connection.cs (2)
409catch (IOException ex) 1421private void AbortStream(int streamId, IOException error)
Internal\Http2\Http2Stream.cs (1)
578public void Abort(IOException abortReason)
Internal\Http3\Http3Connection.cs (1)
481catch (IOException ex)
LocalhostListenOptions.cs (2)
47catch (Exception ex) when (!(ex is IOException or OperationCanceledException)) 61catch (Exception ex) when (!(ex is IOException or OperationCanceledException))
Middleware\HttpsConnectionMiddleware.cs (1)
201catch (IOException ex)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
127catch (IOException ex) when (!_listeningToken.IsCancellationRequested)
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1812var ex = new IOException("The server disconnected before the handshake could be started.");
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
HubLifetimeManagerTestBase.cs (3)
280await Assert.ThrowsAsync<IOException>(() => manager1.InvokeConnectionAsync<int>("none", "Result", new object[] { "test" }, cancellationToken: default)).DefaultTimeout(); 337var ex = await Assert.ThrowsAsync<IOException>(() => invoke1).DefaultTimeout();
ScaleoutHubLifetimeManagerTests.cs (3)
547await Assert.ThrowsAsync<IOException>(() => manager1.InvokeConnectionAsync<int>("none", "Result", new object[] { "test" }, cancellationToken: default)).DefaultTimeout(); 626var ex = await Assert.ThrowsAsync<IOException>(() => manager1.InvokeConnectionAsync<int>("1234", "Result", new object[] { "test" }, cancellationToken: default)).DefaultTimeout();
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
112catch (IOException)
Microsoft.Build (17)
BackEnd\BuildManager\CoordinatorClient.Connection.cs (2)
91catch (Exception ex) when (ex is IOException or EndOfStreamException) 133catch (IOException)
BackEnd\BuildManager\CoordinatorClient.cs (1)
90catch (IOException)
BackEnd\BuildManager\CoordinatorClient.HeartbeatTimer.cs (1)
72catch (IOException)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
1126catch (IOException e) 1159catch (IOException e) 1317catch (IOException e) 1528catch (IOException e)
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
126catch (IOException) 172catch (IOException)
Construction\Solution\ProjectInSolution.cs (1)
376catch (IOException e)
Construction\Solution\SolutionFile.cs (1)
1245catch (IOException e)
Logging\BaseConsoleLogger.cs (3)
309catch (IOException) 324catch (IOException) 422catch (IOException)
Logging\ProfilerLogger.cs (1)
302IOException or
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
501catch (IOException e)
Microsoft.Build.Framework (7)
BackEnd\CommunicationsUtilities.cs (1)
826catch (IOException)
EncodingUtilities.cs (1)
286catch (Exception ex) when (ex is IOException || ex is SecurityException)
ExceptionHandling.cs (2)
87|| e is IOException; 180|| e is IOException
FileUtilities.cs (1)
1135catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
Utilities\FileMatcher.cs (2)
966catch (IOException) { } 3440catch (IOException) { }
Microsoft.Build.Tasks.CodeAnalysis (4)
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
129catch (IOException ex)
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
150e is IOException;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
416catch (Exception e) when (e is IOException || e is TimeoutException) 812catch (IOException)
Microsoft.Build.Tasks.Core (18)
BootstrapperUtil\BootstrapperBuilder.cs (5)
377catch (IOException ex) 1056catch (IOException ex) 1489catch (IOException ex) 2013catch (IOException) 2052catch (IOException)
Copy.cs (1)
1030case IOException: // Not clear why we can get one and not the other
DownloadFile.cs (1)
262if (actualException is IOException)
FileIO\WriteLinesToFile.cs (1)
294catch (IOException)
GenerateResource.cs (1)
2828catch (IOException io)
ManifestUtil\ManifestWriter.cs (1)
148catch (IOException)
ManifestUtil\Util.cs (3)
486catch (IOException) 520catch (IOException) 550catch (IOException)
src\msbuild\src\Shared\AssemblyFolders\Serialization\AssemblyFolderCollection.cs (1)
25/// <exception cref="IOException">The file could not be read.</exception>
src\msbuild\src\Shared\NodePipeServer.cs (1)
131catch (IOException e)
Untar.cs (2)
303catch (Exception e) when (e is IOException or UnauthorizedAccessException) 367catch (Exception e) when (e is IOException or UnauthorizedAccessException)
Unzip.cs (1)
289catch (IOException e)
Microsoft.Build.Tasks.Git (28)
GitDataReader\GitConfig.cs (2)
58/// <exception cref="IOException"/> 69/// <exception cref="IOException"/>
GitDataReader\GitConfig.Reader.cs (4)
73/// <exception cref="IOException"/> 88/// <exception cref="IOException"/> 190/// <exception cref="IOException"/> 215catch (Exception e) when (e is not IOException)
GitDataReader\GitIgnore.cs (1)
99/// <exception cref="IOException"/>
GitDataReader\GitReferenceResolver.cs (6)
179/// <exception cref="IOException"/> 231/// <exception cref="IOException"/> 239/// <exception cref="IOException"/> 275/// <exception cref="IOException"/> 379/// <exception cref="IOException"/> 386catch (Exception e) when (e is not ArgumentException and not IOException)
GitDataReader\GitRefTableReader.cs (1)
39/// <exception cref="IOException"/>
GitDataReader\GitRepository.cs (12)
99/// <exception cref="IOException" /> 109/// <exception cref="IOException" /> 153/// <exception cref="IOException"/> 159/// <exception cref="IOException"/> 173/// <exception cref="IOException"/> 200/// <exception cref="IOException"/> 206/// <exception cref="IOException"/> 212/// <exception cref="IOException"/> 265catch (Exception e) when (e is IOException or InvalidDataException) 333/// <exception cref="IOException" /> 355/// <exception cref="IOException" /> 434catch (Exception e) when (e is not IOException)
RepositoryTask.cs (2)
95catch (Exception e) when (e is IOException or InvalidDataException or NotSupportedException) 142catch (Exception e) when (e is IOException or InvalidDataException or NotSupportedException)
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\AssemblyFolders\Serialization\AssemblyFolderCollection.cs (1)
25/// <exception cref="IOException">The file could not be read.</exception>
ToolTask.cs (1)
1704catch (Exception e) when (e is Win32Exception || e is IOException || e is UnauthorizedAccessException)
Microsoft.CodeAnalysis (63)
AssemblyUtilities.cs (3)
22/// <exception cref="IOException">If the file at <paramref name="filePath"/> does not exist or cannot be accessed.</exception> 58/// <exception cref="IOException">If the files does not exist or cannot be accessed.</exception> 96/// <exception cref="IOException">If the file at <paramref name="assemblyPath"/> does not exist or cannot be accessed.</exception>
AssemblyUtilitiesCore.cs (1)
25/// <exception cref="IOException">If the file at <paramref name="filePath"/> does not exist or cannot be accessed.</exception>
CodeGen\PermissionSetAttribute.cs (1)
106catch (IOException e)
CommandLine\CommandLineArguments.cs (1)
446catch (Exception e) when (diagnosticsOpt != null && (e is BadImageFormatException || e is IOException))
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
59catch (IOException e)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
63catch (Exception e) when (e is BadImageFormatException || e is IOException)
Compilation.EmitStream.cs (2)
150catch (IOException e) 197catch (IOException ex)
Compilation\Compilation.cs (1)
2045catch (IOException ex)
Compilation\SourceReferenceResolver.cs (1)
46/// <exception cref="IOException">Error reading file <paramref name="resolvedPath"/>. See <see cref="Exception.InnerException"/> for details.</exception>
Compilation\XmlReferenceResolver.cs (1)
36/// <exception cref="IOException">Error reading file <paramref name="resolvedPath"/>. See <see cref="Exception.InnerException"/> for details.</exception>
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
224/// <exception cref="IOException">IO error reading the metadata.</exception>
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
217catch (IOException)
DocumentationComments\DocumentationCommentIncludeCache.cs (1)
46/// <exception cref="IOException"></exception>
EmbeddedText.cs (2)
134/// <exception cref="IOException">An I/O error occurs.</exception> 173/// <exception cref="IOException">An I/O error occurs.</exception>
Emit\EditAndContinue\DefinitionMap.cs (3)
352catch (Exception e) when (e is InvalidDataException or IOException or BadImageFormatException) 437catch (Exception e) when (e is UnsupportedSignatureContent || e is BadImageFormatException || e is IOException) 753catch (Exception e) when (e is InvalidDataException or IOException or BadImageFormatException)
Emit\EditAndContinue\EmitBaseline.cs (5)
105/// This exception and <see cref="IOException"/> are caught and converted to an emit diagnostic. Other exceptions are passed through. 110/// This exception and <see cref="IOException"/> are caught and converted to an emit diagnostic. Other exceptions are passed through. 135/// <exception cref="IOException">Error reading module metadata.</exception> 265/// This exception and <see cref="IOException"/> are caught and converted to an emit diagnostic. Other exceptions are passed through. 274/// This exception and <see cref="IOException"/> are caught and converted to an emit diagnostic. Other exceptions are passed through.
EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
FileKey.cs (1)
37/// <exception cref="IOException"/>
FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
FileSystem\ICommonCompilerFileSystem.cs (2)
26/// Open a file and ensure common exception types are wrapped to <see cref="IOException"/>. 42catch (IOException)
FileSystemExtensions.cs (1)
31/// <exception cref="IOException">An error occurred while reading or writing a file.</exception>
MetadataReference\AssemblyMetadata.cs (6)
51/// Shall only throw <see cref="BadImageFormatException"/> or <see cref="IOException"/>. 161/// <exception cref="IOException">Error reading file <paramref name="path"/>. See <see cref="Exception.InnerException"/> for details.</exception> 279/// <exception cref="IOException">IO error reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception> 305/// <exception cref="IOException">IO error while reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception> 313/// <exception cref="IOException">IO error while reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception> 408/// <exception cref="IOException">IO error reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception>
MetadataReference\MetadataReference.cs (2)
182/// <exception cref="IOException">An error occurred while reading the stream.</exception> 224/// <exception cref="IOException">An error occurred while reading the file.</exception>
MetadataReference\ModuleMetadata.cs (2)
205/// <exception cref="IOException"> 257/// <exception cref="IOException">Error opening file <paramref name="path"/>. See <see cref="Exception.InnerException"/> for details.</exception>
MetadataReference\PortableExecutableReference.cs (3)
136/// <exception cref="IOException">The metadata image content can't be read.</exception> 166/// <exception cref="IOException">The metadata image content can't be read.</exception> 179/// <exception cref="IOException">The metadata image content can't be read.</exception>
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
473/// If any of the following exceptions: <see cref="BadImageFormatException"/>, <see cref="FileNotFoundException"/>, <see cref="IOException"/>, 504catch (Exception e) when (e is BadImageFormatException || e is IOException)
RuleSet\RuleSet.cs (1)
320catch (IOException e)
StrongName\DesktopStrongNameProvider.cs (1)
224/// <exception cref="IOException"/>
StrongName\StrongNameKeys.cs (1)
115catch (IOException ex)
Text\SourceText.cs (2)
180/// <exception cref="IOException">An I/O error occurs.</exception> 1347/// <exception cref="IOException">Stream is so big that max char count can't fit in <see cref="int"/>.</exception>
Microsoft.CodeAnalysis.Analyzers (15)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
29/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception> 46/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception>
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
29/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception> 46/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception>
Microsoft.CodeAnalysis.CodeStyle (13)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
343catch (IOException e)
CSharpFileSystemExtensions.cs (1)
30/// <exception cref="IOException">An error occurred while reading or writing a file.</exception>
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
242catch (IOException) when (attemptIndex < 5)
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
78catch (Exception ex) when (ex is BadImageFormatException or IOException)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
91catch (Exception ex) when (ex is BadImageFormatException or IOException)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
95catch (Exception e) when (e is not IOException)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
259catch (IOException)
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
28/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception> 45/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception>
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
29/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception> 46/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception>
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (3)
229/// <exception cref="IOException">Error reading file <paramref name="fullPath"/>. See <see cref="Exception.InnerException"/> for details.</exception> 287/// <exception cref="IOException">Error reading file <paramref name="fullPath"/>. See <see cref="Exception.InnerException"/> for details.</exception> 524catch (IOException)
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\VisualBasicCommandLineArguments.vb (1)
105Catch e As IOException
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
502Catch e As IOException
VisualBasicFileSystemExtensions.vb (1)
28''' <exception cref="IOException">An error occurred while reading or writing a file.</exception>
Microsoft.CodeAnalysis.Workspaces (31)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
76catch (Exception e) when (e is BadImageFormatException or IOException) 88catch (Exception e) when (e is BadImageFormatException or IOException)
Serialization\SerializerService_Reference.cs (1)
257IOException or
Shared\Utilities\IOUtilities.cs (1)
53return e is IOException or
src\roslyn\src\Compilers\Core\Portable\AssemblyUtilitiesCore.cs (1)
25/// <exception cref="IOException">If the file at <paramref name="filePath"/> does not exist or cannot be accessed.</exception>
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
217catch (IOException)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
TemporaryStorage\TemporaryStorageService.MemoryMappedInfo.cs (2)
104/// Run a function which may fail with an <see cref="IOException"/> if not enough memory is available to satisfy 125catch (IOException)
Workspace\Host\Metadata\MetadataServiceFactory.cs (2)
50catch (IOException e) 57private sealed class ThrowingExecutableReference(string resolvedPath, MetadataReferenceProperties properties, DocumentationProvider documentationProvider, IOException exception)
Workspace\Host\TextFactory\ITextFactoryService.cs (1)
32/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception>
Workspace\Solution\FileTextLoader.cs (2)
99/// <exception cref="IOException"></exception> 193/// <exception cref="IOException"></exception>
Workspace\Solution\TextLoader.cs (5)
57/// <exception cref="IOException" /> 79/// <exception cref="IOException" /> 89/// <exception cref="IOException" /> 108catch (IOException e) 137catch (IOException e)
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\MSBuildWorkspace.cs (5)
373catch (IOException exception) 390catch (IOException exception) 466catch (IOException) 530catch (IOException exception) 558catch (IOException exception)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
Microsoft.Diagnostics.NETCore.Client (4)
DiagnosticsClient\EventPipeSession.cs (2)
70catch (IOException) 88catch (IOException)
DiagnosticsIpc\IpcTransport.cs (2)
382catch (IOException) 444catch (IOException)
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
206e is IOException && !(e is DirectoryNotFoundException || e is PathTooLongException) ||
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
627|| e is IOException;
Microsoft.DotNet.Build.Tasks.Packaging (1)
GetPackageDescription.cs (1)
105if (excep is IOException || excep is UnauthorizedAccessException)
Microsoft.DotNet.Cli.Definitions (1)
Commands\Test\TestCommandDefinition.cs (1)
96catch (Exception ex) when (ex is JsonException or IOException or UnauthorizedAccessException)
Microsoft.DotNet.Cli.Utils (3)
FileAccessRetrier.cs (3)
42catch (IOException) 68catch (IOException e) when (e.HResult == ERROR_HRESULT_ACCESS_DENIED) 93catch (IOException)
Microsoft.DotNet.Configurer (1)
UserLevelCacheWriter.cs (1)
54|| ex is IOException)
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
77catch (IOException)
Microsoft.DotNet.ProjectTools (1)
LaunchSettings\LaunchSettings.cs (1)
166catch (Exception ex) when (ex is JsonException or IOException)
Microsoft.DotNet.SdkResolver (1)
VSSettings.cs (1)
118catch (IOException) { }
Microsoft.DotNet.XliffTasks (1)
ExponentialRetry.cs (1)
25catch (IOException e)
Microsoft.Extensions.AI.Abstractions (2)
Contents\DataContent.cs (1)
211/// <exception cref="IOException">A file already exists at the specified path.</exception>
Files\HostedFileClientExtensions.cs (1)
92/// <exception cref="IOException">A file at the destination path already exists.</exception>
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\DataContentTests.cs (1)
961await Assert.ThrowsAsync<IOException>(async () => await content.SaveToAsync(tempPath));
Files\HostedFileClientExtensionsTests.cs (1)
243await Assert.ThrowsAsync<IOException>(() => client.DownloadToAsync("file-dup", tempFile));
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
192/// <exception cref="IOException">An I/O error occurred when opening the file. Other exceptions from the
Microsoft.Extensions.FileProviders.Physical (8)
Internal\FileSystemInfoHelper.cs (1)
62catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
PhysicalDirectoryInfo.cs (1)
100catch (Exception ex) when (ex is DirectoryNotFoundException or IOException)
PhysicalFileProvider.cs (1)
329catch (IOException)
PhysicalFilesWatcher.cs (5)
360catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 503catch (Exception ex) when (ex is IOException or SecurityException or UnauthorizedAccessException) 587catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 691catch (Exception ex) when (ex is ArgumentException or IOException) 1000catch (Exception ex) when (ex is ArgumentException or IOException)
Microsoft.Extensions.Http.Resilience.Tests (2)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (2)
262catch (IOException) 344catch (IOException exception)
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
118catch (IOException)
Microsoft.Maui.Resizetizer (1)
SkiaSharpTools.cs (1)
222 case IOException:
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
336catch (IOException e)
Microsoft.ML.TestFrameworkCommon (2)
TestDownloadUtils.cs (2)
48catch (IOException) when (File.Exists(filePath)) 59retryWhen: ex => ex is HttpRequestException || ex is OperationCanceledException || ex is IOException);
Microsoft.ML.Tests (1)
DatabaseLoaderTests.cs (1)
79catch (IOException ex)
Microsoft.NET.Build.Containers (2)
AmazonECRMessageHandler.cs (1)
26catch (HttpRequestException e) when (e.InnerException is IOException ioe && ioe.Message.Equals("The response ended prematurely.", StringComparison.OrdinalIgnoreCase))
AuthHandshakeMessageHandler.cs (1)
616catch (HttpRequestException e) when (e.InnerException is IOException ioe && ioe.InnerException is SocketException se)
Microsoft.NET.Build.Extensions.Tasks (1)
GetDependsOnNETStandard.cs (1)
89|| e is IOException;
Microsoft.NET.Build.Tasks (6)
CreateAppHost.cs (2)
109catch (Exception ex) when (ex is IOException || 111(ex is AggregateException && (ex.InnerException is IOException || ex.InnerException is UnauthorizedAccessException)))
GenerateBundle.cs (1)
164catch (IOException) when (RetryCount > 0)
LockFileCache.cs (1)
83catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
ResolvePackageAssets.cs (2)
536catch (IOException) { } 576catch (IOException) { }
Microsoft.NET.HostModel (1)
AppHost\RetryUtil.cs (1)
32catch (IOException) when (i < NumberOfRetries)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
GZipCompress.cs (1)
86catch (IOException) when (attempt < MaxRetries)
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\Client.cs (1)
59catch (Exception e) when (e is IOException || e is TimeoutException)
Microsoft.Private.Windows.Core (2)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (1)
28/// <exception cref="IOException">The number of bytes read from the stream exceeds the buffer length.</exception>
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
33catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException or TargetInvocationException)
Microsoft.TemplateEngine.Edge (2)
Settings\ComponentManager.cs (1)
264catch (IOException)
Settings\Scanner.cs (1)
217catch (IOException)
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
283catch (IOException)
Microsoft.TestPlatform.CommunicationUtilities (2)
SocketCommunicationManager.cs (1)
373catch (IOException ioException)
TcpClientExtensions.cs (1)
70catch (IOException ioException)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
607catch (IOException ex)
Microsoft.TestPlatform.PlatformAbstractions (2)
common\Tracing\RollingFileTraceListener.cs (2)
297catch (IOException) 311catch (IOException)
Microsoft.VisualBasic.Core (18)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
383Friend Shared Function GetIOException(ByVal ResourceID As String, ByVal ParamArray PlaceHolders() As String) As IO.IOException
Microsoft\VisualBasic\CompilerServices\IOUtils.vb (1)
67Catch IOex As IOException When _
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (1)
42Catch ex As IOException
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
56Catch ex As IOException
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
42Catch ex As IOException
Microsoft\VisualBasic\FileIO\FileSystem.vb (11)
344''' <exception cref="IO.IOException">If the length of the file is larger than Integer.MaxValue (~2GB).</exception> 659''' <exception cref="IO.IOException">If directory points to a root directory. 702''' <exception cref="IO.IOException">If there's an existing directory or an existing file with the same name.</exception> 802Catch ex As IO.IOException 888''' <exception cref="IO.IOException">SourceDirectoryPath and TargetDirectoryPath are the same. 960''' <exception cref="IO.IOException">Some files or directories cannot be copied or moved.</exception> 979Catch ex As IO.IOException 1023If (TypeOf ex Is IO.IOException OrElse TypeOf ex Is UnauthorizedAccessException OrElse 1044If (TypeOf ex Is IO.IOException OrElse TypeOf ex Is UnauthorizedAccessException OrElse 1064If (TypeOf ex Is IO.IOException OrElse TypeOf ex Is UnauthorizedAccessException OrElse 1337If TypeOf ex Is IO.IOException Or
Microsoft\VisualBasic\FileSystem.vb (2)
292Catch ex As IOException 417Catch ex As IOException
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
720Catch ex As IOException
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
363catch (IOException) when (_fileHelper.Exists(fullFilePath))
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
TrxLogger.cs (2)
501catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException or NotSupportedException or SecurityException) 552catch (IOException)
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
138catch (IOException)
MSBuild (6)
AutomaticEncodingRestorer.cs (2)
42catch (Exception ex) when (ex is IOException || ex is SecurityException) 61catch (Exception ex) when (ex is IOException || ex is SecurityException)
CommandLine\CommandLineParser.cs (1)
415catch (IOException e)
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
501catch (IOException e)
XMake.cs (2)
2314catch (Exception ex) when (ex is IOException || ex is SecurityException) 4457catch (IOException e) when (!loggerDescription.IsOptional)
MSBuild.Coordinator (5)
CoordinatorServer.ConnectedClient.cs (1)
85catch (IOException)
CoordinatorServer.Connection.cs (1)
125catch (IOException)
CoordinatorServer.cs (2)
219catch (IOException) 475catch (IOException)
CoordinatorServer.DefaultDebugOutput.cs (1)
81catch (IOException)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
330[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.IOException))]
netstandard (1)
netstandard.cs (1)
931[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.IOException))]
NuGet.CommandLine.XPlat (1)
Commands\PackageSearch\PackageSearchCommand.cs (1)
139catch (IOException)
NuGet.Common (9)
ConcurrencyUtilities.cs (2)
112catch (IOException) 206catch (IOException)
LocalResourceUtils.cs (3)
31catch (IOException) 80catch (IOException) 126catch (IOException)
PathUtil\FileUtility.cs (4)
198catch (Exception ex) when ((i < (MaxTries - 1)) && (ex is UnauthorizedAccessException || ex is IOException)) 228catch (Exception ex) when ((i < (MaxTries - 1)) && (ex is UnauthorizedAccessException || ex is IOException)) 248catch (Exception ex) when ((i < retries) && (ex is UnauthorizedAccessException || ex is IOException)) 270catch (Exception ex) when ((i < retries) && (ex is UnauthorizedAccessException || ex is IOException))
NuGet.PackageManagement (2)
Projects\PackagesConfigNuGetProject.cs (2)
289&& (ex is IOException || ex is UnauthorizedAccessException)) 297(ex is IOException || ex is UnauthorizedAccessException || ex is XmlException)
NuGet.Packaging (5)
PackageExtraction\ZipArchiveExtensions.cs (1)
138catch (IOException) when (retry < _updateFileTimeFromEntryMaxRetries)
PackageExtractor.cs (4)
534catch (IOException ex) 558catch (IOException ex) 758catch (IOException ex) 862catch (IOException ex)
NuGet.Protocol (7)
Plugins\Sender.cs (1)
66catch (IOException)
Providers\ServiceIndexResourceV3Provider.cs (1)
172ex.InnerException is IOException &&
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
555ex.InnerException is IOException &&
Utility\FindPackagesByIdNupkgDownloader.cs (1)
305ex.InnerException is IOException &&
Utility\GetDownloadResultUtility.cs (1)
151e is IOException)
Utility\LocalFolderUtility.cs (2)
824ex is IOException || 845catch (Exception ex) when (ex is ArgumentException || ex is IOException || ex is SecurityException)
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
203catch (IOException e) 318catch (IOException e)
PresentationCore (5)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (2)
132catch (Exception e) when (retries > 0 && (e is IOException || e is UnauthorizedAccessException)) 156catch(System.IO.IOException)
System\Windows\Input\Cursor.cs (1)
258catch(System.IO.IOException)
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
287catch (Exception e) when (e is IOException)
System\Windows\Media\FontFamily.cs (1)
524catch (IOException)
PresentationFramework (8)
MS\Internal\IO\Packaging\PackageFilter.cs (2)
184catch (IOException) 392catch (IOException)
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
112catch (IOException ioException)
MS\Internal\IO\Packaging\XpsFilter.cs (2)
421catch (IOException ex) 550catch (IOException ex)
System\Windows\Navigation\NavigationService.cs (2)
2659catch (IOException e) 2837catch (IOException e)
System\Windows\ResourceDictionary.cs (1)
180catch (System.IO.IOException)
PresentationUI (10)
MS\Internal\Documents\Application\DocumentProperties.cs (1)
309catch (IOException)
MS\Internal\Documents\Application\DocumentStream.cs (3)
431catch (IOException ioe) 551catch (IOException) 756catch (IOException io)
MS\Internal\Documents\Application\FileController.cs (3)
81catch (IOException ioe) 127catch (IOException ioe) 347catch (IOException ioe)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
269(exception is System.IO.IOException) ||
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (1)
170/// <exception cref="System.IO.IOException" />
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (1)
272/// <exception cref="System.IO.IOException" />
ReachFramework (1)
AlphaFlattener\Flattener.cs (1)
1069catch (System.IO.IOException e)
Roslyn.Diagnostics.Analyzers (15)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
90/// <exception cref="IOException">An IO error occurred while reading from the stream.</exception> 145/// <exception cref="IOException">Error reading from stream.</exception>
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (11)
248/// <exception cref="IOException"/> 303catch (IOException) 331catch (Exception e) when (e is not IOException) 348catch (Exception e) when (e is not IOException) 386catch (IOException) 396/// <exception cref="IOException"/> 404catch (IOException) 414/// <exception cref="IOException"/> 423catch (IOException) 433/// <exception cref="IOException"/> 448catch (IOException)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
29/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception> 46/// <exception cref="IOException">Exception while performing any I/O on given file paths.</exception>
rzc (1)
Client.cs (1)
59catch (Exception e) when (e is IOException || e is TimeoutException)
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
142catch (IOException ex)
System.CommandLine (2)
LocalizationResources.cs (1)
101internal static string ErrorReadingResponseFile(string filePath, IOException e) =>
Parsing\StringExtensions.cs (1)
347catch (IOException e)
System.Configuration.ConfigurationManager (2)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
142catch (IOException ex)
System\Configuration\Internal\WriteFileContext.cs (1)
143catch (IOException)
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLogInternal.cs (2)
491catch (IOException) 504catch (IOException)
System.Diagnostics.PerformanceCounter (3)
System\Diagnostics\PerformanceCounterLib.cs (3)
1063catch (IOException) 1271catch (IOException e) 1307catch (IOException e)
System.Diagnostics.Process (6)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
28catch (IOException) { }
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (2)
170catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
System\Diagnostics\AsyncStreamReader.cs (1)
105catch (IOException)
System\Diagnostics\Process.Linux.cs (1)
280catch (IOException)
System\Diagnostics\ProcessManager.Linux.cs (1)
156catch (IOException)
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
212catch (Exception e) when (e is BadImageFormatException || e is IOException)
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\TextWriterTraceListener.cs (1)
239catch (IOException)
System.Drawing.Common (2)
System\Drawing\Icon.cs (1)
845/// <exception cref="IOException">
System\Drawing\Image.cs (1)
944or IOException
System.Formats.Nrbf (2)
System\Formats\Nrbf\NrbfDecoder.cs (2)
54/// <exception cref="IOException">An I/O error occurred.</exception> 104/// <exception cref="IOException">An I/O error occurred.</exception>
System.Formats.Tar (25)
System\Formats\Tar\TarEntry.cs (3)
204/// <exception cref="IOException"><para>The parent directory of <paramref name="destinationFileName"/> does not exist.</para> 235/// <exception cref="IOException"><para>The parent directory of <paramref name="destinationFileName"/> does not exist.</para> 267/// <exception cref="IOException">An I/O problem occurred.</exception>
System\Formats\Tar\TarFile.cs (16)
36/// <exception cref="IOException">An I/O exception occurred.</exception> 56/// <exception cref="IOException">An I/O exception occurred.</exception> 98/// <exception cref="IOException">An I/O exception occurred.</exception> 120/// <exception cref="IOException">An I/O exception occurred.</exception> 162/// <exception cref="IOException">An I/O exception occurred.</exception> 180/// <exception cref="IOException">An I/O exception occurred.</exception> 219/// <exception cref="IOException">An I/O exception occurred.</exception> 239/// <exception cref="IOException">An I/O exception occurred.</exception> 278/// <exception cref="IOException">An I/O exception occurred.</exception> 298/// <exception cref="IOException">An I/O exception occurred.</exception> 340/// <exception cref="IOException">An I/O exception occurred.</exception> 362/// <exception cref="IOException">An I/O exception occurred.</exception> 405/// <exception cref="IOException">An I/O exception occurred.</exception> 424/// <exception cref="IOException">An I/O exception occurred.</exception> 468/// <exception cref="IOException">An I/O exception occurred.</exception> 489/// <exception cref="IOException">An I/O exception occurred.</exception>
System\Formats\Tar\TarReader.cs (2)
102/// <exception cref="IOException">An I/O problem occurred.</exception> 139/// <exception cref="IOException">An I/O problem occurred.</exception>
System\Formats\Tar\TarWriter.cs (4)
153/// <exception cref="IOException">An I/O problem occurred.</exception> 175/// <exception cref="IOException">An I/O problem occurred.</exception> 239/// <exception cref="IOException">An I/O problem occurred.</exception> 287/// <exception cref="IOException">An I/O problem occurred.</exception>
System.IO (1)
System.IO.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.IOException))]
System.IO.Compression (57)
System\IO\Compression\DeflateDecoder.cs (1)
23/// <exception cref="IOException">Failed to create the <see cref="DeflateDecoder"/> instance.</exception>
System\IO\Compression\DeflateEncoder.cs (4)
22/// <exception cref="IOException">Failed to create the <see cref="DeflateEncoder"/> instance.</exception> 33/// <exception cref="IOException">Failed to create the <see cref="DeflateEncoder"/> instance.</exception> 44/// <exception cref="IOException">Failed to create the <see cref="DeflateEncoder"/> instance.</exception> 56/// <exception cref="IOException">Failed to create the <see cref="DeflateEncoder"/> instance.</exception>
System\IO\Compression\GZipDecoder.cs (1)
19/// <exception cref="IOException">Failed to create the <see cref="GZipDecoder"/> instance.</exception>
System\IO\Compression\GZipEncoder.cs (4)
19/// <exception cref="IOException">Failed to create the <see cref="GZipEncoder"/> instance.</exception> 30/// <exception cref="IOException">Failed to create the <see cref="GZipEncoder"/> instance.</exception> 41/// <exception cref="IOException">Failed to create the <see cref="GZipEncoder"/> instance.</exception> 53/// <exception cref="IOException">Failed to create the <see cref="GZipEncoder"/> instance.</exception>
System\IO\Compression\ZipArchive.Async.cs (1)
305catch (IOException ex)
System\IO\Compression\ZipArchive.cs (1)
768catch (IOException ex)
System\IO\Compression\ZipArchiveEntry.Async.cs (4)
19/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in ZipArchiveMode.Create, and this entry has already been written to once.</exception> 45/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in ZipArchiveMode.Create, and this entry has already been written to once.</exception> 73/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive.</exception> 100/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in <see cref="ZipArchiveMode.Create" />, and this entry has already been written to once.</exception>
System\IO\Compression\ZipArchiveEntry.cs (4)
425/// <exception cref="IOException">The entry is already open for reading or writing.</exception> 456/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in ZipArchiveMode.Create, and this entry has already been written to once.</exception> 471/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in ZipArchiveMode.Create, and this entry has already been written to once.</exception> 503/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in ZipArchiveMode.Create, and this entry has already been written to once.</exception>
System\IO\Compression\ZLibDecoder.cs (1)
19/// <exception cref="IOException">Failed to create the <see cref="ZLibDecoder"/> instance.</exception>
System\IO\Compression\ZLibEncoder.cs (4)
19/// <exception cref="IOException">Failed to create the <see cref="ZLibEncoder"/> instance.</exception> 30/// <exception cref="IOException">Failed to create the <see cref="ZLibEncoder"/> instance.</exception> 41/// <exception cref="IOException">Failed to create the <see cref="ZLibEncoder"/> instance.</exception> 53/// <exception cref="IOException">Failed to create the <see cref="ZLibEncoder"/> instance.</exception>
System\IO\Compression\Zstandard\ZstandardDecoder.cs (7)
27/// <exception cref="IOException">Failed to create the <see cref="ZstandardDecoder"/> instance.</exception> 38/// <exception cref="IOException">Failed to create the <see cref="ZstandardDecoder"/> instance.</exception> 62/// <exception cref="IOException">Failed to create the <see cref="ZstandardDecoder"/> instance.</exception> 85/// <exception cref="IOException">Failed to create the <see cref="ZstandardDecoder"/> instance.</exception> 118/// <exception cref="IOException">Failed to create the <see cref="ZstandardDecoder"/> instance.</exception> 168/// <exception cref="IOException">An error occurred during decompression.</exception> 357/// <exception cref="IOException">Failed to reset the decoder session.</exception>
System\IO\Compression\Zstandard\ZstandardDictionary.cs (2)
40/// <exception cref="IOException">Failed to create the <see cref="ZstandardDictionary"/> instance.</exception> 84/// <exception cref="IOException">Failed to train the dictionary.</exception>
System\IO\Compression\Zstandard\ZstandardEncoder.cs (9)
26/// <exception cref="IOException">Failed to create the <see cref="ZstandardEncoder"/> instance.</exception> 36/// <exception cref="IOException">Failed to create the <see cref="ZstandardEncoder"/> instance.</exception> 59/// <exception cref="IOException">Failed to create the <see cref="ZstandardEncoder"/> instance.</exception> 80/// <exception cref="IOException">Failed to create the <see cref="ZstandardEncoder"/> instance.</exception> 109/// <exception cref="IOException">Failed to create the <see cref="ZstandardEncoder"/> instance.</exception> 137/// <exception cref="IOException">Failed to create the <see cref="ZstandardEncoder"/> instance.</exception> 201/// <exception cref="IOException">An error occurred during compression.</exception> 223/// <exception cref="IOException">An error occurred during the operation.</exception> 391/// <exception cref="IOException">Failed to reset the encoder session.</exception>
System\IO\Compression\Zstandard\ZstandardStream.Compress.cs (8)
223/// <exception cref="IOException">Failed to compress data to the underlying stream.</exception> 234/// <exception cref="IOException">Failed to compress data to the underlying stream.</exception> 244/// <exception cref="IOException">Failed to compress data to the underlying stream.</exception> 261/// <exception cref="IOException">Failed to compress data to the underlying stream.</exception> 274/// <exception cref="IOException">Failed to compress data to the underlying stream.</exception> 301/// <exception cref="IOException">Failed to compress data to the underlying stream.</exception> 317/// <exception cref="IOException">The flush operation failed.</exception> 335/// <exception cref="IOException">The flush operation failed.</exception>
System\IO\Compression\Zstandard\ZstandardStream.Decompress.cs (6)
122/// <exception cref="IOException">Failed to decompress data from the underlying stream.</exception> 135/// <exception cref="IOException">Failed to decompress data from the underlying stream.</exception> 295/// <exception cref="IOException">Failed to decompress data from the underlying stream.</exception> 309/// <exception cref="IOException">Failed to decompress data from the underlying stream.</exception> 396/// <exception cref="IOException">Failed to decompress data from the underlying stream.</exception> 415/// <exception cref="IOException">Failed to decompress data from the underlying stream.</exception>
System.IO.Compression.Brotli (3)
System\IO\Compression\dec\BrotliStream.Decompress.cs (1)
103/// <exception cref="System.IO.IOException">The method tried to read asynchronously past the end of the stream, or a disk error occurred.</exception>
System\IO\Compression\enc\BrotliEncoder.cs (1)
23/// <exception cref="System.IO.IOException">Failed to create the <see cref="System.IO.Compression.BrotliEncoder" /> instance.</exception>
System\IO\Compression\enc\BrotliStream.Compress.cs (1)
108/// <exception cref="System.IO.IOException">The method tried to write asynchronously past the end of the stream, or a disk error occurred.</exception>
System.IO.Compression.ZipFile (59)
System\IO\Compression\ZipFile.Create.Async.cs (12)
24/// <exception cref="IOException">An unspecified I/O error occurred while opening the file.</exception> 49/// <exception cref="IOException">An unspecified I/O error occurred while opening the file.</exception> 89/// <exception cref="IOException">An unspecified I/O error occurred while opening the file.</exception> 207/// <exception cref="IOException"><code>destinationArchiveFileName</code> already exists. 252/// <exception cref="IOException"><code>destinationArchiveFileName</code> already exists. 301/// <exception cref="IOException"><code>destinationArchiveFileName</code> already exists. 354/// If a file in the directory cannot be added to the archive, the archive is left incomplete and invalid, and the method throws an <see cref="IOException"/> exception. 363/// <exception cref="IOException">A file in the specified directory could not be opened. 382/// If a file in the directory cannot be added to the archive, the archive is left incomplete and invalid, and the method throws an <see cref="IOException"/> exception. 391/// <exception cref="IOException">A file in the specified directory could not be opened. 413/// If a file in the directory cannot be added to the archive, the archive is left incomplete and invalid, and the method throws an <see cref="IOException"/> exception. 422/// <exception cref="IOException">A file in the specified directory could not be opened.
System\IO\Compression\ZipFile.Create.cs (12)
22/// <exception cref="IOException">An unspecified I/O error occurred while opening the file.</exception> 44/// <exception cref="IOException">An unspecified I/O error occurred while opening the file.</exception> 81/// <exception cref="IOException">An unspecified I/O error occurred while opening the file.</exception> 194/// <exception cref="IOException"><code>destinationArchiveFileName</code> already exists. 236/// <exception cref="IOException"><code>destinationArchiveFileName</code> already exists. 282/// <exception cref="IOException"><code>destinationArchiveFileName</code> already exists. 331/// If a file in the directory cannot be added to the archive, the archive is left incomplete and invalid, and the method throws an <see cref="IOException"/> exception. 340/// <exception cref="IOException">A file in the specified directory could not be opened. 357/// If a file in the directory cannot be added to the archive, the archive is left incomplete and invalid, and the method throws an <see cref="IOException"/> exception. 366/// <exception cref="IOException">A file in the specified directory could not be opened. 385/// If a file in the directory cannot be added to the archive, the archive is left incomplete and invalid, and the method throws an <see cref="IOException"/> exception. 394/// <exception cref="IOException">A file in the specified directory could not be opened.
System\IO\Compression\ZipFile.Extract.Async.cs (10)
30/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 65/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 101/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 158/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 226/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 295/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 327/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 367/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 408/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 464/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Extract.cs (10)
28/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 60/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 93/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 147/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 209/// <exception cref="IOException">An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or 268/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 297/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 334/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 372/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 420/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (4)
32/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception> 60/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception> 93/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception> 123/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (3)
32/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception> 63/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception> 109/// <exception cref="IOException">An I/O error occurred while opening the file specified by sourceFileName.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
25/// <exception cref="IOException">An archive entry?s name is zero-length, contains only whitespace, or contains one or more invalid 58/// <exception cref="IOException">An archive entry?s name is zero-length, contains only whitespace, or contains one or more invalid
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
23/// <exception cref="IOException">An archive entry's name is zero-length, contains only whitespace, or contains one or more invalid 53/// <exception cref="IOException">An archive entry's name is zero-length, contains only whitespace, or contains one or more invalid
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
25/// <exception cref="IOException">An I/O error has occurred. -or- The entry is currently open for writing. 54/// <exception cref="IOException">An I/O error has occurred.
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
22/// <exception cref="IOException">An I/O error has occurred. -or- The entry is currently open for writing. 50/// <exception cref="IOException">An I/O error has occurred.
System.IO.FileSystem.AccessControl (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathHelper.Windows.cs (1)
23/// <exception cref="IOException">Thrown if the path is empty.</exception>
System\IO\FileSystemAclExtensions.cs (1)
131/// <exception cref="IOException">An I/O error occurs.</exception>
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
1207catch (IOException ex) when (ex.HResult == Interop.Error.ENOTDIR.Info().RawErrno)
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
46catch (IOException)
System.IO.Packaging (34)
System\IO\Packaging\Package.cs (20)
143/// <exception cref="IOException">If package to be created should have readwrite/read access and underlying stream is write only</exception> 144/// <exception cref="IOException">If package to be created should have readwrite/write access and underlying stream is read only</exception> 160/// <exception cref="IOException">If package to be created should have readwrite/read access and underlying stream is write only</exception> 161/// <exception cref="IOException">If package to be created should have readwrite/write access and underlying stream is read only</exception> 182/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 204/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 255/// <exception cref="IOException">If the package is write only, information cannot be retrieved from it</exception> 279/// <exception cref="IOException">If the package is write only, information cannot be retrieved from it</exception> 304/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 382/// <exception cref="IOException">If the package is writeonly, no information can be retrieved from it</exception> 532/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 572/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 594/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 618/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 641/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 657/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 681/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 703/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 914/// <exception cref="IOException">If package to be created should have readwrite/read access and underlying stream is write only</exception> 915/// <exception cref="IOException">If package to be created should have readwrite/write access and underlying stream is read only</exception>
System\IO\Packaging\PackagePart.cs (14)
264/// <exception cref="IOException">If the subclass fails to provide a non-null stream object</exception> 283/// <exception cref="IOException">If FileAccess.Read is provided and FileMode values are any of the following - 285/// <exception cref="IOException">If the mode and access for the Package and the Stream are not compatible</exception> 286/// <exception cref="IOException">If the subclass fails to provide a non-null stream object</exception> 307/// <exception cref="IOException">If FileAccess.Read is provided and FileMode values are any of the following - 309/// <exception cref="IOException">If the mode and access for the Package and the Stream are not compatible</exception> 310/// <exception cref="IOException">If the subclass fails to provide a non-null stream object</exception> 370/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 394/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 419/// <exception cref="IOException">If the package is readonly, it cannot be modified</exception> 443/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 461/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 486/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception> 509/// <exception cref="IOException">If the package is write only, no information can be retrieved from it</exception>
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
332private IOException GetIOExceptionForSocketException(SocketException e)
System.IO.Ports (2)
System\IO\Ports\SerialStream.Unix.cs (2)
630catch (IOException) when (!dtrEnable) 652catch (IOException) when (!rtsEnable)
System.Net.Http (3)
System\Net\Http\HttpContent.cs (1)
686internal static bool StreamCopyExceptionNeedsWrapping(Exception e) => e is IOException || e is ObjectDisposedException;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
2181catch (Exception e) when (e is IOException || e is ObjectDisposedException || e is InvalidOperationException)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
933if (exception is IOException ioe)
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
1566else if (ex is WinHttpException || ex is IOException || ex is InvalidOperationException)
System.Net.HttpListener (4)
System\Net\Managed\HttpRequestStream.Managed.cs (1)
196catch (IOException e) when (e.InnerException is ArgumentException || e.InnerException is InvalidOperationException)
System\Net\Managed\HttpResponseStream.Managed.cs (3)
150catch (IOException ex) 242catch (IOException ex) 282catch (IOException ex)
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
281catch (IOException)
System.Net.NameResolution (5)
System\Net\DnsResolverPal.Managed.cs (3)
523catch (IOException ex) 672catch (Exception ex) when (ex is SocketException or IOException) 686catch (Exception ex) when (ex is SocketException or IOException)
System\Net\ResolvConf.cs (2)
52catch (IOException) 69catch (IOException)
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\LinuxIPv4InterfaceProperties.cs (1)
55catch (NetworkInformationException ex) when (ex.InnerException is IOException or UnauthorizedAccessException) { }
System.Net.Requests (6)
System\Net\CommandStream.cs (5)
224catch (IOException) 419catch (IOException) 446catch (IOException) 533catch (IOException) 648catch (IOException)
System\Net\FtpWebRequest.cs (1)
918if (webException.InnerException is IOException ioEx &&
System.Net.Security (4)
System\Net\Security\NegotiateStream.cs (2)
443catch (Exception e) when (!(e is IOException || e is OperationCanceledException)) 557catch (Exception e) when (!(e is IOException || e is OperationCanceledException))
System\Net\Security\SslStream.IO.cs (2)
1029if (e is IOException || (e is OperationCanceledException && cancellationToken.IsCancellationRequested)) 1077if (e is IOException || (e is OperationCanceledException && cancellationToken.IsCancellationRequested))
System.Net.Sockets (1)
System\Net\Sockets\NetworkStream.cs (1)
719private static IOException WrapException(string resourceFormatString, Exception innerException)
System.Private.CoreLib (36)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (2)
170catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
464/// <exception cref="IOException">An I/O error occurred.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (4)
62/// <exception cref="IOException">A new directory cannot be created.</exception> 94catch (IOException) { } 306/// <exception cref="IOException">A file or directory already exists in the location of <paramref name="path"/>. 324/// <exception cref="IOException">The directory on <paramref name="linkPath"/> does not exist.
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (18)
114catch (IOException) { } 193/// <exception cref="IOException">An I/O error occurred while opening the null device.</exception> 231/// <exception cref="IOException"> 263/// <exception cref="IOException"> 344/// <exception cref="IOException"> 375/// <exception cref="IOException"> 456/// <exception cref="IOException"> 487/// <exception cref="IOException"> 673/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 706/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 779/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 805/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 829/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 986/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 1019/// <exception cref="IOException">An I/O error occurred while opening the file.</exception> 1454/// <exception cref="IOException">A file or directory already exists in the location of <paramref name="path"/>. 1476/// <exception cref="IOException">A file or directory already exists in the location of <paramref name="path"/>. 1494/// <exception cref="IOException">The file on <paramref name="linkPath"/> does not exist.
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
248/// <exception cref="IOException">A file or directory already exists in the location of <see cref="Name"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (2)
158/// <exception cref="IOException">A file or directory already exists in the location of <see cref="FullName"/>. 173/// <exception cref="IOException">The file or directory does not exist.
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
105catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (1)
55e is IOException ||
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.cs (1)
25/// <exception cref="IOException">An error occurred while setting up the signal handling or while installing the handler for the specified signal.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (5)
130catch (Exception ex) when (ex is IOException || ex is OutOfMemoryException) 177catch (IOException) { } 296catch (IOException) { } 342catch (IOException) { } 369catch (IOException) { }
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
33catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException or TargetInvocationException)
System.Reflection.Metadata (34)
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (3)
15/// <exception cref="IOException">Error while reading from the memory source.</exception> 26/// <exception cref="IOException">Error while reading from the memory source.</exception> 39/// <exception cref="IOException">IO error while reading from the underlying stream.</exception>
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (3)
68/// <exception cref="IOException">Error reading from the stream.</exception> 100/// <exception cref="IOException">Error while reading from the stream.</exception> 116/// <exception cref="IOException">IO error while mapping memory or not enough memory to create the mapping.</exception>
System\Reflection\Metadata\MetadataReaderProvider.cs (3)
162/// <exception cref="IOException">Error reading from the stream (only when <see cref="MetadataStreamOptions.PrefetchMetadata"/> is specified).</exception> 241/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 277/// <exception cref="IOException">IO error while reading from the underlying stream.</exception>
System\Reflection\Metadata\PEReaderExtensions.cs (4)
23/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 49/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 63/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 78/// <exception cref="IOException">IO error while reading from the underlying stream.</exception>
System\Reflection\PortableExecutable\PEHeaders.cs (3)
40/// <exception cref="IOException">Error reading from the stream.</exception> 54/// <exception cref="IOException">Error reading from the stream.</exception> 70/// <exception cref="IOException">Error reading from the stream.</exception>
System\Reflection\PortableExecutable\PEReader.cs (17)
126/// <exception cref="IOException">Error reading from the stream (only when prefetching data).</exception> 154/// <exception cref="IOException">Error reading from the stream (only when prefetching data).</exception> 294/// <exception cref="IOException">Error reading from the stream.</exception> 308/// <exception cref="IOException">Error reading from the stream.</exception> 355/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 377/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 451/// <exception cref="IOException">Error reading from the underlying stream.</exception> 462/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 477/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 533/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 602/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 642/// <exception cref="IOException">IO error while reading from the underlying stream.</exception> 685/// The provider shall throw <see cref="IOException"/> if it fails to open the file due to an unexpected IO error. 709/// <exception cref="IOException">No matching PDB file is found due to an error: An IO error occurred while reading the PE image or the PDB.</exception> 761Debug.Assert(errorToReport is BadImageFormatException || errorToReport is IOException); 779catch (Exception e) when (e is BadImageFormatException || e is IOException) 843catch (Exception e) when (e is BadImageFormatException || e is IOException)
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
152catch (Exception e) when (e is BadImageFormatException || e is IOException)
System.Resources.Extensions (2)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (2)
50catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException) 71catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
317[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.IOException))]
System.Security.Cryptography (6)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (6)
76/// <exception cref="IOException"> 244/// <exception cref="IOException"> 306/// <exception cref="IOException"> 478/// <exception cref="IOException"> 530/// <exception cref="IOException"> 660catch (IOException e)
System.ServiceModel.NetFramingBase (8)
System\ServiceModel\Channels\Connection.cs (6)
299catch (IOException ioException) 313catch (IOException ioException) 327catch (IOException ioException) 344private Exception ConvertIOException(IOException ioException) 372catch (IOException ioException) 411catch (IOException ioException)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
382catch (IOException ioException)
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (1)
189catch (IOException ioException)
System.ServiceModel.NetNamedPipe (4)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (4)
284catch(IOException ioe) 319private static Exception CreatePipeNameCannotBeAccessedException(IOException ioe, Uri pipeUri) 332catch(IOException ioe) 432public static string GetErrorString(IOException exception)
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\SecurityVerifiedMessage.cs (2)
283catch (IOException) 298catch (IOException)
System.Speech (4)
Internal\SapiInterop\SpAudioStreamWrapper.cs (1)
47catch (IOException)
Internal\Synthesis\SSmlParser.cs (1)
323catch (IOException)
Internal\Synthesis\VoiceSynthesis.cs (2)
1382catch (IOException) 1410catch (IOException)
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
1123/// original type of exception was (for example, <see cref="IO.IOException"/> may be thrown if the system is unable to
System.Threading.AccessControl (6)
System\Threading\EventWaitHandleAcl.cs (2)
87/// <exception cref="IOException">A Win32 error occurred.</exception> 118/// <exception cref="IOException">A Win32 error occurred.</exception>
System\Threading\MutexAcl.cs (2)
78/// <exception cref="IOException">A Win32 error occurred.</exception> 109/// <exception cref="IOException">A Win32 error occurred.</exception>
System\Threading\SemaphoreAcl.cs (2)
91/// <exception cref="IOException">The path was not found. 124/// <exception cref="IOException">A Win32 error occurred.</exception>
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListView\ListView.cs (4)
2449catch (IOException) { } 2955catch (IOException) { } 3113catch (IOException) { } 3138catch (IOException) { }
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1771catch (IOException e)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
119catch (IOException x)
System\Drawing\Design\ToolboxItem.cs (2)
503catch (IOException) 524catch (IOException)
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ThemingScope.cs (1)
116catch (Exception e) when (e is UnauthorizedAccessException or IOException)
TypeScriptApiCompat (1)
TypeScriptApiCompatRunner.cs (1)
43catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException)
vbc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
416catch (Exception e) when (e is IOException || e is TimeoutException) 812catch (IOException)
VBCSCompiler (8)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (6)
261catch (IOException) 280catch (IOException) 356catch (IOException ex) 515catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 532catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 538catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
416catch (Exception e) when (e is IOException || e is TimeoutException) 812catch (IOException)
vstest.console (1)
Processors\ResultsDirectoryArgumentProcessor.cs (1)
127catch (Exception ex) when (ex is NotSupportedException or SecurityException or ArgumentException or PathTooLongException or IOException)
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\ResultsDirectoryArgumentProcessor.cs (1)
127catch (Exception ex) when (ex is NotSupportedException or SecurityException or ArgumentException or PathTooLongException or IOException)