dotnet / dotnet/aspnetcore

System.IO.IOException occurs when running any project in Visual Studio 2022

Open
#57,381 1 comment 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe the bug

use the latest version of Visual Studio(Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.11.0) and net8.0

Every project I run, this exception occurs. As you can see in the image below, I ran a simple api project and an error occurs.

![82RtlOlT](https://github.com/user-attachments/assets/9a32233c-5d89-423e-bd06-9969dd59b496)

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Net.Security.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Net.Security.dll ("Received
> an unexpected EOF or 0 bytes from the transport stream.") Hyperlink:
> Activate Historical Debugging 1.86s [28724] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Private.CoreLib.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
> ("Received an unexpected EOF or 0 bytes from the transport stream.")
> Hyperlink: Activate Historical Debugging 1.86s [28724] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Net.Security.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Net.Security.dll ("Received
> an unexpected EOF or 0 bytes from the transport stream.") Hyperlink:
> Activate Historical Debugging 1.86s [28736] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Private.CoreLib.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
> ("Received an unexpected EOF or 0 bytes from the transport stream.")
> Hyperlink: Activate Historical Debugging 1.86s [28732] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Net.Security.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Net.Security.dll ("Received
> an unexpected EOF or 0 bytes from the transport stream.") Hyperlink:
> Activate Historical Debugging 1.86s [28732] Worker Thread

Even the new project that I create and run, I face these exceptions.
I don't know where the problem is and how to fix it.

### Expected Behavior

An exception should not occur

### Steps To Reproduce

Even the new project that I create and run, I face these exceptions.
[PakShavad3.zip](https://github.com/user-attachments/files/16644273/PakShavad3.zip)

### Exceptions (if any)

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Net.Security.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Net.Security.dll ("Received
> an unexpected EOF or 0 bytes from the transport stream.") Hyperlink:
> Activate Historical Debugging 1.86s [28724] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Private.CoreLib.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
> ("Received an unexpected EOF or 0 bytes from the transport stream.")
> Hyperlink: Activate Historical Debugging 1.86s [28724] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Net.Security.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Net.Security.dll ("Received
> an unexpected EOF or 0 bytes from the transport stream.") Hyperlink:
> Activate Historical Debugging 1.86s [28736] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Private.CoreLib.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
> ("Received an unexpected EOF or 0 bytes from the transport stream.")
> Hyperlink: Activate Historical Debugging 1.86s [28732] Worker Thread

and

> Event Type Moniker Event Time Duration Thread Exception thrown:
> 'System.IO.IOException' in System.Net.Security.dll ("Received an
> unexpected EOF or 0 bytes from the transport stream.") Exception
> thrown: 'System.IO.IOException' in System.Net.Security.dll ("Received
> an unexpected EOF or 0 bytes from the transport stream.") Hyperlink:
> Activate Historical Debugging 1.86s [28732] Worker Thread

### .NET Version

8.0.400

### Anything else?

[
![82RtlOlT](https://github.com/user-attachments/assets/7dcd0df8-b774-4fcf-8afc-b5aa5e30f6c4)
](url)

> .NET SDK:
> Version: 8.0.400
> Commit: 36fe6dda56
> Workload version: 8.0.400-manifests.56cd0383
> MSBuild version: 17.11.3+0c8610977
>
> Runtime Environment:
> OS Name: Windows
> OS Version: 10.0.19045
> OS Platform: Windows
> RID: win-x64
> Base Path: C:\Program Files\dotnet\sdk\8.0.400\
>
> .NET workloads installed:
> Configured to use loose manifests when installing new manifests.
> [wasm-tools]
> Installation Source: VS 17.11.35208.52
> Manifest Version: 8.0.8/8.0.100
> Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.workload.mono.toolchain.current\8.0.8\WorkloadManifest.json
> Install Type: Msi
>
> [aspire]
> Installation Source: VS 17.11.35208.52
> Manifest Version: 8.1.0/8.0.100
> Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.1.0\WorkloadManifest.json
> Install Type: Msi
>
>
> Host:
> Version: 8.0.8
> Architecture: x64
> Commit: 08338fcaa5
>
> .NET SDKs installed:
> 8.0.108 [C:\Program Files\dotnet\sdk]
> 8.0.400 [C:\Program Files\dotnet\sdk]
>
> .NET runtimes installed:
> Microsoft.AspNetCore.App 6.0.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
> Microsoft.AspNetCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
> Microsoft.AspNetCore.App 7.0.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
> Microsoft.AspNetCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
> Microsoft.NETCore.App 6.0.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
> Microsoft.NETCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
> Microsoft.NETCore.App 7.0.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
> Microsoft.NETCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
> Microsoft.WindowsDesktop.App 6.0.30 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
> Microsoft.WindowsDesktop.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
> Microsoft.WindowsDesktop.App 7.0.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
> Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
>
> Other architectures found:
> x86 [C:\Program Files (x86)\dotnet]
> registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
>
> Environment variables:
> Not set
>
> global.json file:
> Not found
>
> Learn more:
> https://aka.ms/dotnet/info
>
> Download .NET:
> https://aka.ms/dotnet/download
>

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.