70 instantiations of EndOfStreamException
aspire-tray (2)
src\Aspire.Tray\Common\CliAppHostClient.cs (2)
74failure = new EndOfStreamException(); 146throw new EndOfStreamException();
Aspire.Hosting (2)
Dcp\DcpKubernetesClient.cs (2)
262throw new EndOfStreamException("DCP watch ended before returning an event."); 346throw new EndOfStreamException("DCP watch ended in an incomplete event.", ex);
Aspire.Hosting.Browsers (1)
BrowserLogsCdpConnection.cs (1)
546throw new EndOfStreamException("Browser debug pipe closed.");
Aspire.Hosting.Browsers.Tests (4)
BrowserHostTests.cs (1)
129throw new EndOfStreamException("The host pipe closed before a CDP frame was written.");
BrowserLogsCdpConnectionTests.cs (1)
381throw new EndOfStreamException("The stream closed before a null-terminated frame was received.");
BrowserLogsPipeBrowserProcessLauncherTests.cs (1)
85throw new EndOfStreamException("The process exited before the expected pipe response was read.");
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
546throw new EndOfStreamException("Browser debug pipe closed.");
Aspire.Hosting.Native.Core.Tests (1)
TestServices\NativeSocketTestHost.cs (1)
100var response = await ReadAsync(cancellationToken) ?? throw new EndOfStreamException("Expected a response.");
Aspire.Hosting.Native.Server (1)
Rpc\NativeRpcFraming.cs (1)
37throw new EndOfStreamException("The JSON-RPC frame header is incomplete.");
Aspire.TerminalHost.Tests (2)
TerminalHostAppTests.cs (2)
984throw new EndOfStreamException( 1153throw new EndOfStreamException(
Aspire.Tray.Tests (2)
src\Aspire.Tray\Common\CliAppHostClient.cs (2)
74failure = new EndOfStreamException(); 146throw new EndOfStreamException();
csc (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
690throw new EndOfStreamException("Reached end of stream before end of read.");
dotnet-aot (2)
parent\dotnet\Commands\Test\MTP\IPC\Serializers\BaseSerializer.cs (2)
160: throw new EndOfStreamException(); 269throw new EndOfStreamException($"Field {fieldId} extends beyond the end of the stream.");
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
3322throw new EndOfStreamException();
ILCompiler.ReadyToRun (1)
parent\parent\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
441throw new EndOfStreamException();
Microsoft.AspNetCore.Components.Server (7)
Circuits\RemoteJSDataStream.cs (4)
99throw new EndOfStreamException($"Out of sequence chunk received, expected {_expectedChunkId}, but received {chunkId}."); 106throw new EndOfStreamException("The incoming data chunk cannot be empty."); 111throw new EndOfStreamException("The incoming data chunk exceeded the permitted length."); 118throw new EndOfStreamException($"The incoming data stream declared a length {_totalLength}, but {_bytesRead} bytes were sent.");
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (3)
981private static EndOfStreamException ThrowNotEnoughBytesException() => throw new EndOfStreamException(); 987private static EndOfStreamException ThrowNotEnoughBytesException(Exception innerException) => throw new EndOfStreamException(new EndOfStreamException().Message, innerException);
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
103throw new EndOfStreamException("Failed to read the requested number of bytes from the stream.");
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
103throw new EndOfStreamException("Failed to read the requested number of bytes from the stream.");
Microsoft.AspNetCore.OutputCaching (1)
FormatterBinaryReader.cs (1)
193private static void ThrowEndOfStream() => throw new EndOfStreamException();
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
417throw new EndOfStreamException();
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamReader.cs (1)
65ResolveIfStillPending(() => tcs.SetException(new EndOfStreamException()));
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
602throw new EndOfStreamException();
Microsoft.Build.Framework (2)
BackEnd\InterningBinaryReader.cs (1)
135throw new EndOfStreamException();
BackEnd\NodePacketTypeExtensions.cs (1)
116throw new EndOfStreamException("Unexpected end of stream while reading version");
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
690throw new EndOfStreamException("Reached end of stream before end of read.");
Microsoft.Build.Tasks.Git (2)
GitDataReader\GitRefTableReader.Primitives.cs (2)
31throw new EndOfStreamException(); 141throw new EndOfStreamException();
Microsoft.CodeAnalysis (3)
EmbeddedText.cs (2)
237throw new EndOfStreamException(); 255throw new EndOfStreamException();
PEWriter\ManagedResource.cs (1)
61throw new EndOfStreamException(
Microsoft.CodeAnalysis.BuildClient.Package (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
690throw new EndOfStreamException("Reached end of stream before end of read.");
Microsoft.Diagnostics.NETCore.Client (3)
DiagnosticsIpc\IpcAdvertise.cs (1)
52throw new EndOfStreamException();
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
129throw new EndOfStreamException();
StreamExtensions.cs (1)
23throw new EndOfStreamException();
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\StreamExtensions.cs (1)
269throw new EndOfStreamException();
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\StreamExtensions.cs (1)
269throw new EndOfStreamException();
Microsoft.ML.Data (2)
DataLoadSave\Text\TextLoaderCursor.cs (1)
533throw new EndOfStreamException($"A quoted field opened on line {lineNum} was never closed, and we've read to the last line in the file without finding the closing quote");
Utilities\StreamUtils.cs (1)
225throw new EndOfStreamException("Unable to read beyond the end of the stream.");
Microsoft.NET.Sdk.Razor.Tasks (1)
parent\Tool\ServerProtocol\ServerProtocol.cs (1)
58throw new EndOfStreamException("Reached end of stream before end of read.");
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (1)
90throw new EndOfStreamException();
PresentationCore (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
230throw new System.IO.EndOfStreamException(SR.EndOfStreamReached);
rzc (1)
ServerProtocol\ServerProtocol.cs (1)
58throw new EndOfStreamException("Reached end of stream before end of read.");
System.Formats.Nrbf (1)
System\Formats\Nrbf\Utils\ThrowHelper.cs (1)
38=> throw new EndOfStreamException();
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
174throw new EndOfStreamException();
System\Formats\Tar\GnuSparseStream.cs (1)
309throw new EndOfStreamException();
System.IO.Compression (1)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
174throw new EndOfStreamException();
System.IO.Packaging (1)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
560throw new EndOfStreamException();
System.IO.Pipes (1)
System\IO\Error.cs (1)
11return new EndOfStreamException(SR.IO_EOF_ReadBeyondEOF);
System.IO.Ports (1)
System\IO\Ports\InternalResources.cs (1)
14throw new EndOfStreamException(SR.IO_EOF_ReadBeyondEOF);
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1390result == 0 ? new EndOfStreamException() : // end of file that violates protocol
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
430throw new EndOfStreamException(SR.Format(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
771return new System.IO.EndOfStreamException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
381new EndOfStreamException(SR.IO_EOF_ReadBeyondEOF);
System.Resources.Extensions (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
430throw new EndOfStreamException(SR.Format(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index));
System.Security.Cryptography (1)
System\Security\Cryptography\CapiHelper.Shared.cs (1)
204throw new EndOfStreamException(); // Simulate same exception as ReadKeyBlobHeader would throw
System.Speech (2)
Internal\Helpers.cs (2)
65throw new EndOfStreamException(SR.Get(SRID.StreamEndedUnexpectedly)); 89throw new EndOfStreamException();
vbc (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
690throw new EndOfStreamException("Reached end of stream before end of read.");
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
690throw new EndOfStreamException("Reached end of stream before end of read.");
63 references to EndOfStreamException
Aspire.Hosting (2)
Dcp\DcpPipelineBuilder.cs (1)
72.HandleInner<EndOfStreamException>()
Publishing\ContainerImageArchiveRewriter.cs (1)
131catch (EndOfStreamException ex)
Aspire.Hosting.Native.Core.Tests (1)
NativeFramingTests.cs (1)
142await Assert.ThrowsAsync<EndOfStreamException>(() => reader.ReadAsync(CancellationToken.None));
ILAssembler (1)
Win32ResourceSectionBuilder.cs (1)
38catch (Exception ex) when (ex is EndOfStreamException or BadImageFormatException or OverflowException)
Microsoft.AspNetCore.Components.Server (12)
Circuits\RemoteJSDataStream.cs (1)
140if (e is EndOfStreamException)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (11)
22/// <exception cref="EndOfStreamException">Thrown by reading methods when there are not enough bytes to read the required value.</exception> 101/// <exception cref="EndOfStreamException">Thrown if the end of the sequence provided to the constructor is reached before the expected end of the data.</exception> 112/// <exception cref="EndOfStreamException">Thrown if the end of the sequence provided to the constructor is reached before the expected end of the data.</exception> 304/// <exception cref="EndOfStreamException">Thrown if the end of the sequence provided to the constructor is reached before the expected end of the data.</exception> 356/// <exception cref="EndOfStreamException"> 434/// <exception cref="EndOfStreamException"> 850/// <exception cref="EndOfStreamException"> 981private static EndOfStreamException ThrowNotEnoughBytesException() => throw new EndOfStreamException(); 987private static EndOfStreamException ThrowNotEnoughBytesException(Exception innerException) => throw new EndOfStreamException(new EndOfStreamException().Message, innerException); 1001/// Throws <see cref="EndOfStreamException"/> if a condition is false. 1004/// <exception cref="EndOfStreamException">Thrown if <paramref name="condition"/> is <see langword="false"/>.</exception>
Microsoft.AspNetCore.SpaServices.Extensions (3)
AngularCli\AngularCliBuilder.cs (1)
72catch (EndOfStreamException ex)
AngularCli\AngularCliMiddleware.cs (1)
79catch (EndOfStreamException ex)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
93catch (EndOfStreamException ex)
Microsoft.Build (2)
BackEnd\BuildManager\CoordinatorClient.Connection.cs (1)
91catch (Exception ex) when (ex is IOException or EndOfStreamException)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
342(e is EndOfStreamException && _readStream.BytesCountAllowedToReadRemaining <= 0))
Microsoft.Build.Framework (1)
BackEnd\NodePacketTypeExtensions.cs (1)
110/// <exception cref="EndOfStreamException">Thrown when the stream ends unexpectedly while reading the version.</exception>
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
2121catch (EndOfStreamException)
Microsoft.DotNet.Cli.CoreUtils (1)
Resources\StreamStringResourceReader.cs (1)
133catch (EndOfStreamException exception)
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\NamedPipeClientTransport.cs (1)
62return e is ObjectDisposedException or EndOfStreamException or SocketException { ErrorCode: 125 }
Microsoft.ML.Data (1)
Utilities\StreamUtils.cs (1)
257/// <exception cref="EndOfStreamException">
Microsoft.ML.Tests (1)
TextLoaderTests.cs (1)
1407catch (EndOfStreamException)
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (1)
72/// <exception cref="EndOfStreamException">
Mono.Cecil (2)
Mono.Cecil.PE\ImageReader.cs (2)
768 } catch (EndOfStreamException e) { 792 } catch (EndOfStreamException e) {
MSBuild.Coordinator (1)
CoordinatorServer.cs (1)
236catch (EndOfStreamException)
mscorlib (1)
parent\ref\mscorlib.cs (1)
318[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))]
netstandard (1)
netstandard.cs (1)
906[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))]
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
177catch (EndOfStreamException)
System.Formats.Nrbf (1)
System\Formats\Nrbf\NrbfDecoder.cs (1)
113/// <exception cref="EndOfStreamException">The end of the stream was reached before reading <see cref="SerializationRecordType.MessageEnd"/> record.</exception>
System.IO (1)
System.IO.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))]
System.IO.Compression (7)
System\IO\Compression\ZipArchive.Async.cs (2)
255catch (EndOfStreamException ex) 301catch (EndOfStreamException ex)
System\IO\Compression\ZipArchive.cs (2)
701catch (EndOfStreamException ex) 764catch (EndOfStreamException ex)
System\IO\Compression\ZipArchiveEntry.Async.cs (1)
205catch (Exception ex) when (ex is InvalidDataException or EndOfStreamException)
System\IO\Compression\ZipArchiveEntry.cs (1)
667catch (Exception ex) when (ex is InvalidDataException or EndOfStreamException)
System\IO\Compression\ZipCryptoStream.cs (1)
223catch (EndOfStreamException)
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
465/// <exception cref="EndOfStreamException">The end of the stream is reached before filling the <paramref name="buffer" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (6)
341/// <exception cref="EndOfStreamException"> 373/// <exception cref="EndOfStreamException"> 411/// <exception cref="EndOfStreamException"> 814/// <exception cref="EndOfStreamException"> 842/// <exception cref="EndOfStreamException"> 874/// <exception cref="EndOfStreamException">
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
543catch (EndOfStreamException eof) 625catch (EndOfStreamException eof) 784catch (EndOfStreamException eof)
System.Resources.Extensions (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
543catch (EndOfStreamException eof) 625catch (EndOfStreamException eof) 784catch (EndOfStreamException eof)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net12.0\System.Runtime.Forwards.cs (1)
296[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))]
System.Runtime.Extensions (1)
System.Runtime.Extensions.cs (1)
41[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))]
System.Security.Cryptography (2)
System\Security\Cryptography\CapiHelper.DSA.Shared.cs (1)
264catch (EndOfStreamException)
System\Security\Cryptography\CapiHelper.Shared.cs (1)
193catch (EndOfStreamException)
System.Speech (1)
Internal\SapiInterop\SpStreamWrapper.cs (1)
45catch (EndOfStreamException)
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
184catch (EndOfStreamException e)
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2958catch (EndOfStreamException ex)