177 references to IOException
dotnet-svcutil-lib (1)
Metadata\MetadataDocumentSaver.cs (1)
74throw new IOException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrFileAlreadyExistsFormat, fileInfo.FilePath));
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
861throw 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)
861throw new IOException("The reader completed without returning a frame.");
IIS.LongTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
861throw new IOException("The reader completed without returning a frame.");
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
861throw new IOException("The reader completed without returning a frame.");
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
861throw new IOException("The reader completed without returning a frame.");
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
861throw new IOException("The reader completed without returning a frame.");
InMemory.FunctionalTests (5)
Http2\Http2TestBase.cs (1)
1255throw new IOException("The reader completed without returning a frame.");
Http2\TlsTests.cs (1)
128throw new IOException("The reader completed without returning a frame.");
RequestTests.cs (1)
1175throw new IOException("Unexpected end of content.");
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
592throw 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)
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.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)
861throw new IOException("The reader completed without returning a frame.");
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http2\Http2Stream.cs (1)
566Abort(new IOException(CoreStrings.HttpStreamResetByClient));
Internal\Http3\Http3Stream.cs (1)
618stream.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)
175throw new IOException("The reader completed without returning a frame.");
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
592throw new IOException("The reader completed without returning a frame.");
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1504var 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.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
392_receiveTcs.TrySetException(new IOException("force reconnect"));
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)
176throw new IOException("Unexpected end of Stream, the content may have already been read by another component. "); 256throw 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.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)
1298throw new IOException(CodeAnalysisResources.StreamIsTooLong);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
8987dispose: () => { throw new IOException("Fake IOException"); }); 9010dispose: () => { throw new IOException("Fake IOException"); }); 9032dispose: () => { throw new IOException("Fake IOException"); }); 9062dispose: () => { throw new IOException("Fake IOException"); });
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
582throw new IOException("Error"); 3830OpenAssemblyStreamImpl = () => throw new IOException("*message*"),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
9572Return New TestStream(backingStream:=New MemoryStream(), dispose:=Sub() Throw New IOException("Fake IOException")) 9592Return New TestStream(backingStream:=New MemoryStream(), dispose:=Sub() Throw New IOException("Fake IOException")) 9611Return New TestStream(backingStream:=New MemoryStream(), dispose:=Sub() Throw New IOException("Fake IOException")) 9640dispose:=Sub() Throw New IOException("Fake IOException"))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\EmitTestStrongNameProvider.vb (1)
18Dim thrownException = New IOException("This is a test IOException")
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)
182private 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.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
273Return New IO.IOException(Description)
PrepareTests (2)
MinimizeUtil.cs (2)
285throw new IOException($"Failed to create hard link from {existingFileName} to {fileName} with exception 0x{Marshal.GetLastWin32Error():X}"); 293throw new IOException($"Failed to create hard link from {existingFileName} to {fileName} with error code {Marshal.GetLastWin32Error()}");
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)
190throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 206throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
System\Windows\Media\Imaging\BitmapDownload.cs (1)
153throw 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);
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.Formats.Tar (9)
System\Formats\Tar\SeekableSubReadStream.cs (1)
95throw new IOException(SR.IO_SeekBeforeBegin);
System\Formats\Tar\TarEntry.cs (6)
356throw new IOException(SR.Format(SR.TarExtractingResultsFileOutside, name, destinationDirectoryPath)); 370throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 385throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 509throw new IOException(SR.Format(SR.IO_PathNotFound_Path, filePath)); 520throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath)); 526throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath));
System\Formats\Tar\TarWriter.cs (1)
398throw 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.ZipFile (4)
System\IO\Compression\ZipFile.Create.Async.cs (1)
490throw new IOException(SR.Format(SR.ZipUnsupportedFile, fullPath));
System\IO\Compression\ZipFile.Create.cs (1)
457throw new IOException(SR.Format(SR.ZipUnsupportedFile, fullPath));
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
125throw new IOException(SR.IO_ExtractingResultsInOutside); 130throw 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.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.Memory.Data (1)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (1)
77throw new IOException(SR.IO_SeekBeforeBegin);
System.Net.Mail (2)
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
88throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 284throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
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)
704throw new IOException(SR.IO_FileTooLong2GB); 1184return 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)); 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)); 704throw 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)
788throw 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)
136throw new IOException(SR.Format(SR.IO_PathNotFound_Path, name));
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);
src\System\IO\FileLoadException.CoreCLR.cs (1)
13: base(null)
src\System\IO\FileNotFoundException.CoreCLR.cs (1)
10: base(null)
System.ServiceModel.NetNamedPipe (1)
System\IO\PipeException.cs (1)
17: base(message)
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (2)
124throw new IOException(SR.DataStreamWrite); 146throw new IOException(SR.DataStreamWrite);