195 references to IOException
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
IIS.Common.TestLib (1)
TestConnections.cs (1)
233tcs.SetException(new IOException(
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
IIS.LongTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
InMemory.FunctionalTests (5)
Http2\Http2TestBase.cs (1)
1227throw new IOException("The reader completed without returning a frame.");
Http2\TlsTests.cs (1)
121throw new IOException("The reader completed without returning a frame.");
RequestTests.cs (1)
1171throw new IOException("Unexpected end of content.");
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
586throw new IOException("The reader completed without returning a frame.");
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
145throw new IOException(
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)
72throw 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.HttpLogging.Tests (3)
HttpLoggingMiddlewareTests.cs (3)
892throw new IOException("Test exception"); 917throw new IOException("Test exception"); 1583throw new IOException("Test exception");
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\Binders\BodyModelBinderTests.cs (7)
521throw new IOException("Unable to read input stream!!"); 787throw new IOException("Unable to read input stream!!"); 809throw new IOException("Unable to read input stream!!"); 831throw new IOException("Unable to read input stream!!"); 857throw new IOException("Unable to read input stream!!"); 879throw new IOException("Unable to read input stream!!"); 899throw new IOException("Unable to read input stream!!");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
854throw new IOException("The reader completed without returning a frame.");
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http2\Http2Stream.cs (1)
554Abort(new IOException(CoreStrings.HttpStreamResetByClient));
Internal\Http3\Http3Stream.cs (1)
602stream.AbortCore(new IOException(CoreStrings.HttpStreamResetByClient), (Http3ErrorCode)errorCode);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
145throw new IOException(
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Http2\Http2ConnectionBenchmarkBase.cs (1)
172throw new IOException("The reader completed without returning a frame.");
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
586throw new IOException("The reader completed without returning a frame.");
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1289var 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 (6)
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 (2)
166throw new IOException("Unexpected end of Stream, the content may have already been read by another component. "); 246throw new IOException("Unexpected end of Stream, the content may have already been read by another component. ");
Microsoft.AspNetCore.WebUtilities.Tests (2)
HttpResponseStreamWriterTest.cs (2)
821throw new IOException("Test IOException"); 834throw new IOException("Test IOException");
Microsoft.Build (2)
CommunicationsUtilities.cs (2)
551throw new IOException(String.Format(CultureInfo.InvariantCulture, "Unexpected end of stream while reading for handshake")); 580throw new IOException(String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));
Microsoft.Build.Tasks.Core (1)
NativeMethods.cs (1)
858throw new IOException("Moving target is read-only");
Microsoft.Build.Tasks.UnitTests (1)
Copy_Tests.cs (1)
3082throw new IOException("oops");
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
298new IOException("An I/O error occurred"));
Microsoft.DotNet.Build.Tasks.Installers (1)
src\BuildFPMToolPreReqs.cs (1)
59throw new IOException($"Could not open the file {ConfigJsonFile} for reading.");
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
56throw new IOException(string.Format(Strings.TemplateResourceNotFound, resourceName));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
273Return New IO.IOException(Description)
MSBuild (2)
CommunicationsUtilities.cs (2)
551throw new IOException(String.Format(CultureInfo.InvariantCulture, "Unexpected end of stream while reading for handshake")); 580throw new IOException(String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));
MSBuildTaskHost (2)
CommunicationsUtilities.cs (2)
551throw new IOException(String.Format(CultureInfo.InvariantCulture, "Unexpected end of stream while reading for handshake")); 580throw new IOException(String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));
PresentationCore (6)
MS\Internal\FontCache\FontCacheUtil.cs (3)
865throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 881throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 885throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\WpfWebRequestHelper.cs (2)
212throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 229throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
System\Windows\Media\Imaging\BitmapDownload.cs (1)
173throw new IOException(SR.Image_CannotCreateTempFile);
PresentationFramework (6)
MS\Internal\AppModel\ContentFilePart.cs (1)
83throw new IOException(SR.Format(SR.UnableToLocateResource, Uri.ToString()));
MS\Internal\AppModel\ResourceContainer.cs (1)
377throw new IOException(SR.EntryAssemblyIsNull);
MS\Internal\AppModel\ResourcePart.cs (2)
81throw new IOException(SR.Format(SR.UnableToLocateResource, _name)); 137throw new IOException(SR.Format(SR.UnableToLocateResource, _name));
MS\Internal\IO\Packaging\ByteStream.cs (1)
158throw new IOException(SR.SeekFailed);
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
139throw new IOException(SR.StreamObjectDisposed);
PresentationUI (4)
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (2)
197throw new IOException( 203throw new IOException(
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (2)
288throw new IOException( 294throw new IOException(
ReachFramework (1)
Packaging\XpsManager.cs (1)
1476throw new IOException(SR.ReachPackaging_CannotModifyReadOnlyContainer);
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
145throw new IOException(
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
145throw new IOException(
System.Configuration.ConfigurationManager (1)
System\Configuration\Internal\InternalConfigHost.cs (1)
259throw new IOException(SR.Format(SR.Config_invalid_attributes_for_write, streamName));
System.Console (3)
System\Console.cs (3)
406throw new IOException(SR.InvalidOperation_SetWindowSize); 426throw new IOException(SR.InvalidOperation_SetWindowSize); 449throw new IOException(SR.InvalidOperation_SetWindowSize);
System.Formats.Tar (9)
System\Formats\Tar\SeekableSubReadStream.cs (1)
95throw new IOException(SR.IO_SeekBeforeBegin);
System\Formats\Tar\TarEntry.cs (6)
341throw new IOException(SR.Format(SR.TarExtractingResultsFileOutside, name, destinationDirectoryPath)); 355throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 370throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 494throw new IOException(SR.Format(SR.IO_PathNotFound_Path, filePath)); 505throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath)); 511throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath));
System\Formats\Tar\TarWriter.cs (1)
383throw new IOException(SR.Format(SR.TarStreamSeekabilityUnsupportedCombination, entry.Name));
System\Formats\Tar\TarWriter.Unix.cs (1)
38_ => throw new IOException(SR.Format(SR.TarUnsupportedFile, fullPath)),
System.IO.Compression (8)
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)
422throw new IOException(SR.CreateModeCreateEntryWhileOpen);
System\IO\Compression\ZipArchiveEntry.cs (4)
271throw new IOException(SR.FrozenAfterWrite); 310throw new IOException(SR.DeleteOpenEntry); 693throw new IOException(SR.CreateModeWriteOnceAndOneEntryAtATime); 714throw new IOException(SR.UpdateModeOneStream);
System\IO\Compression\ZipHelper.cs (2)
44throw new IOException(SR.UnexpectedEndOfStream); 165throw new IOException(SR.UnexpectedEndOfStream);
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 (3)
System\IO\Compression\ZipFile.Create.cs (1)
510throw new IOException(SR.Format(SR.ZipUnsupportedFile, fullPath));
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
120throw new IOException(SR.IO_ExtractingResultsInOutside); 127throw 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)
774throw new IOException(SR.CannotModifyReadOnlyContainer); 781throw new IOException(SR.CannotRetrievePartsOfWriteOnlyContainer);
System\IO\Packaging\PackagePart.cs (3)
330throw new IOException(SR.NullStreamReturned); 702throw new IOException(SR.UnsupportedCombinationOfModeAccess); 707throw new IOException(SR.ContainerAndPartModeIncompatible);
System\IO\Packaging\ZipPackage.cs (1)
307throw 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)
224throw 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); 269throw new IOException(SR.IO_AllPipeInstancesAreBusy);
System\IO\Pipes\PipeStream.cs (1)
379throw new IOException(SR.IO_PipeBroken);
System\IO\Pipes\PipeStream.Unix.cs (1)
241throw new IOException(SR.IO_InvalidPipeHandle);
System.Memory.Data (1)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (1)
77throw new IOException(SR.IO_SeekBeforeBegin);
System.Net.Http (5)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (1)
77throw new IOException(SR.IO_SeekBeforeBegin);
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (2)
155throw new IOException(SR.ObjectDisposed_StreamClosed); 174return 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)
362throw new IOException(SR.net_http_invalid_response_premature_eof);
System.Net.Mail (2)
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
114throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 452throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
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 (10)
System\Net\Security\NegotiateStream.cs (4)
379throw new IOException(SR.net_frame_read_size); 420throw new IOException(SR.net_io_read); 455throw new IOException(SR.net_io_eof); 541throw new IOException(SR.net_io_encrypt);
System\Net\Security\SslStream.IO.cs (4)
389throw new IOException(SR.net_io_eof); 735throw new IOException(SR.net_io_eof); 864throw new IOException(SR.net_ssl_io_renego); 995throw new IOException(SR.net_ssl_io_frame);
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 (48)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
455throw new IOException(SR.Format(errorInfo.Error == Interop.Error.EFBIG
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
251throw new IOException(SR.Format(SR.IO_InvalidStringLen_Len, stringLength));
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (2)
21: base(SR.Arg_DirectoryNotFoundException) 27: base(message ?? SR.Arg_DirectoryNotFoundException)
src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (2)
15: base(SR.Arg_EndOfStreamException) 21: base(message ?? SR.Arg_EndOfStreamException)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
651throw new IOException(SR.IO_FileTooLong2GB); 989return Task.FromException<byte[]>(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.IO_FileTooLong2GB)));
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\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (3)
17: base(SR.IO_FileNotFound) 23: base(message) 35: base(message)
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.cs (1)
43throw new IOException(SR.IO_SourceDestMustBeDifferent);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (9)
59return new IOException(SR.Format(SR.Arg_FileIsDirectory_Name, path)); 148throw new IOException(SR.Format(SR.IO_CannotReplaceSameFile, sourceFullPath, destFullPath)); 411throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 436throw new IOException(SR.IO_SourceDestMustBeDifferent); 443throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 447throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, destFullPath)); 461throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 567throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, fullPath)); 706throw new IOException(SR.Format(SR.IO_TooManySymbolicLinkLevels, linkPath));
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (4)
133throw new IOException(SR.IO_StreamTooLong); 530throw new IOException(SR.IO_SeekBeforeBegin); 587throw new IOException(SR.IO_StreamTooLong); 638throw new IOException(SR.IO_StreamTooLong);
src\libraries\System.Private.CoreLib\src\System\IO\PathTooLongException.cs (2)
15: base(SR.IO_PathTooLong) 21: base(message ?? SR.IO_PathTooLong)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (2)
169throw new IOException(SR.IO_SeekAppendOverwrite); 182throw new IOException(SR.IO_SetLengthAppendTruncate);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
796throw new IOException(SR.IO_StreamTooLong);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (2)
105throw new IOException(SR.IO_InvalidReadLength); 155throw new IOException(SR.IO_InvalidReadLength);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (7)
319throw new IOException(SR.IO_SeekBeforeBegin); 542throw new IOException(SR.IO_SeekBeforeBegin); 548throw new IOException(SR.IO_SeekBeforeBegin); 554throw new IOException(SR.IO_SeekBeforeBegin); 579throw new IOException(SR.IO_FixedCapacity); 636throw new IOException(SR.IO_StreamTooLong); 765throw new IOException(SR.IO_StreamTooLong);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
59set => throw new IOException(SR.IO_FixedCapacity);
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
43throw new IOException(SR.Format(SR.IO_PathNotFound_Path, name));
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
37throw new IOException(SR.IO_UnseekableFile); 42throw new IOException(fs.Length == 0 ? SR.IO_InvalidReadLength : SR.IO_FileTooLong);
src\System\IO\FileLoadException.CoreCLR.cs (1)
13: base(null)
src\System\IO\FileNotFoundException.CoreCLR.cs (1)
10: base(null)
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
32throw new IOException(SR.UnexpectedStreamEnd);