Skip to content

[NETSDKE2E][Intermittent]With NET11 preview 4 SDK installed, "Unhandled exception. System.ObjectDisposedException: Cannot access a disposed object." happens when repairing android wasm-tools in CLI #54079

Closed

Description

@xianyoong

REGRESSION INFO: not repro on NET11 preview3.

INSTALL STEPS

  1. Clean machine: Windows 11
  2. Install .NET 11 SDK (11.0.100-preview.4.26224.122)

Repro steps:
1.dotnet workload install wasm-tools --skip-manifest-update
2.dotnet workload install android --skip-manifest-update
3.Navigate to the where some of the workload packs were installed
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.MonoAOTCompiler.Task\11.0.0-preview.4.26224.122\Sdk and delete a number of random files

4.Execute: dotnet workload repair

Expected Result:
Android wasm-tools repair successfully and the output shows correctly.

Actual Result:
Install Android wasm-tools successfully, but below message displayed.

Image

Unhandled exception. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Collections.Concurrent.BlockingCollection`1[[System.String, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
at Microsoft.DotNet.Cli.Installer.Windows.TimestampedFileLogger.WriteMessage(String message)
at Microsoft.DotNet.Cli.Installer.Windows.TimestampedFileLogger.ProcessLogRequests(Object logPipeName)
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)at System.Threading.Thread.StartCallback(Thread* pThread)

dotnet --info
.NET SDK:
Version: 11.0.100-preview.4.26224.122
Commit: 48bd87d899
Workload version: 11.0.100-manifests.e88583fc
MSBuild version: 18.7.0-preview-26224-122+48bd87d89

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\11.0.100-preview.4.26224.122\

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 11.0.0-preview.4.26224.122
Architecture: x64
Commit: 48bd87d899

.NET SDKs installed:
11.0.100-preview.4.26224.122 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 11.0.0-preview.4.26224.122 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 11.0.0-preview.4.26224.122 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 11.0.0-preview.4.26224.122 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Activity

  1. added
    untriaged
    on Apr 27, 2026
  2. xianyoong commented on Apr 27, 2026

    @xianyoong
    Author
  3. Wycc20 commented on May 6, 2026

    @Wycc20

    Not repro on 11.0.100-preview.4.26230.115.

    Image
  4. vwenchen commented on May 26, 2026

    @vwenchen

    Meet this issue on 11.0.0-preview.5.26275.101
    Image

  5. xianyoong commented on Jun 4, 2026

    @xianyoong
    Author

    this issue repro on 11.0.100-preview.5.26302.115

    Image
  6. vwenchen commented on Jun 11, 2026

    @vwenchen

    Not repro on 11.0.100-preview.6.26310.110

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-Workloadsuntriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions