243 references to IOException
aspire (1)
Utils\ReparsePoint.cs (1)
88throw new IOException(
Aspire.Cli.Tests (12)
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."));
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.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.Tests (1)
Orchestrator\ParameterProcessorTests.cs (1)
1688throw new IOException("Failed to delete section.");
dotnet-svcutil-lib (1)
Metadata\MetadataDocumentSaver.cs (1)
74throw new IOException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrFileAlreadyExistsFormat, fileInfo.FilePath));
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");
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.Connections.Abstractions (1)
Exceptions\ConnectionResetException.cs (1)
18public ConnectionResetException(string message) : base(message)
Microsoft.AspNetCore.Http.Abstractions (2)
BadHttpRequestException.cs (2)
17: base(message) 27: base(message)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http2\Http2Stream.cs (1)
575Abort(new IOException(CoreStrings.HttpStreamResetByClient));
Internal\Http3\Http3Stream.cs (1)
676stream.AbortCore(new IOException(CoreStrings.HttpStreamResetByClient), (Http3ErrorCode)errorCode);
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 (2)
HttpContextBuilder.cs (1)
180_responseReaderStream.Abort(new IOException("The client aborted the request."));
ResponseBodyPipeWriter.cs (1)
66throw new IOException("The request was aborted or the pipeline has finished.");
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.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.CodeAnalysis (4)
EmbeddedText.cs (1)
222throw new IOException(CodeAnalysisResources.StreamIsTooLong);
StrongName\DesktopStrongNameProvider.cs (1)
158throw new IOException(ex.Message);
StrongName\StrongNameKeys.cs (1)
155throw new IOException(CodeAnalysisResources.InvalidPublicKey);
Text\SourceText.cs (1)
1357throw new IOException(CodeAnalysisResources.StreamIsTooLong);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\FileTextLoader.cs (1)
224throw new IOException(message);
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
56throw new IOException(string.Format(Strings.TemplateResourceNotFound, resourceName));
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 (4)
Utilities\Contracts.cs (4)
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);
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
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);
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.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 (4)
Microsoft\Win32\RegistryKey.cs (3)
1025throw new IOException(SR.Arg_RegValueTooLarge); 1053throw new IOException(SR.Arg_RegValueTooLarge); 1105throw new IOException(SR.Arg_RegValueTooLarge);
System\Security\AccessControl\RegistrySecurity.cs (1)
105exception = new IOException(SR.Arg_RegKeyNotFound);
Mono.Cecil.Pdb (2)
Microsoft.Cci.Pdb\PdbDebugException.cs (1)
10: base(String.Format(format, args)) {
Microsoft.Cci.Pdb\PdbException.cs (1)
10: base(String.Format(format, args)) {
PresentationCore (6)
MS\Internal\FontCache\FontCacheUtil.cs (3)
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()));
System\Windows\Media\Imaging\BitmapDownload.cs (1)
168throw new IOException(SR.Image_CannotCreateTempFile);
PresentationFramework (6)
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);
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);
System.Configuration.ConfigurationManager (1)
System\Configuration\Internal\InternalConfigHost.cs (1)
259throw new IOException(SR.Format(SR.Config_invalid_attributes_for_write, streamName));
System.Formats.Tar (11)
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 (15)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
261throw new IOException(SR.IO_SeekBeforeBegin);
System\IO\Compression\DeflateZLib\ZLibException.cs (1)
28public ZLibException(string? message, string? zlibErrorContext, int zlibErrorCode, string? zlibErrorMessage) : base(message)
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.DriveInfo (2)
System\IO\DriveNotFoundException.cs (2)
15: base(SR.IO_DriveNotFound) 21: base(message ?? SR.IO_DriveNotFound)
System.IO.MemoryMappedFiles (1)
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 (7)
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 (1)
241throw new IOException(SR.IO_InvalidPipeHandle);
System.Net.Http (4)
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\SocksException.cs (1)
10public SocksException(string message) : base(message) { }
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
363throw new IOException(SR.net_http_invalid_response_premature_eof);
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpRequestCallback.cs (1)
190state.LifecycleAwaitable.SetException(new IOException(SR.Format(
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 (2)
System\Net\DnsResolverPal.Managed.cs (2)
774throw new IOException(SR.net_io_eof); 790throw new IOException(SR.net_io_eof);
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 (13)
System\Net\Security\NegotiateStream.cs (4)
376throw new IOException(SR.net_frame_read_size); 422throw new IOException(SR.net_io_read); 460throw new IOException(SR.net_io_eof); 546throw new IOException(SR.net_io_encrypt);
System\Net\Security\SslStream.IO.cs (3)
455throw new IOException(SR.net_io_eof); 861throw new IOException(SR.net_io_eof); 965throw new IOException(SR.net_ssl_io_renego);
System\Net\Security\TlsSession.cs (2)
902throw new IOException(SR.net_io_decrypt); 1254throw new IOException(SR.net_io_decrypt);
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 (3)
System\Net\Sockets\NetworkStream.cs (3)
55throw new IOException(SR.net_sockets_blocking); 59throw new IOException(SR.net_notconnected); 63throw new IOException(SR.net_notstream);
System.Private.CoreLib (57)
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 (1)
251throw new IOException(SR.Format(SR.IO_InvalidStringLen_Len, stringLength));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (2)
21: base(SR.Arg_DirectoryNotFoundException) 27: base(message ?? SR.Arg_DirectoryNotFoundException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (2)
15: base(SR.Arg_EndOfStreamException) 21: base(message ?? SR.Arg_EndOfStreamException)
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\FileLoadException.cs (3)
15: base(SR.IO_FileLoad) 21: base(message) 32public FileLoadException(string? message, string? fileName) : base(message)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (3)
17: base(SR.IO_FileNotFound) 23: base(message) 35: base(message)
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 (9)
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)); 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\PathTooLongException.cs (2)
15: base(SR.IO_PathTooLong) 21: base(message ?? SR.IO_PathTooLong)
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\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.ServiceModel.NetNamedPipe (1)
System\IO\PipeException.cs (1)
17: base(message)
System.Threading.AccessControl (1)
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);