Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NETSDKE2E][Workload set]After running "dotnet workload update" and clicking "No" first and then "Yes" on UAC prompt, Unhandled exception " Workload update failed:System.IO.FileNotFoundException: Workload version 9.0.100-servicing.24530.1..., was not found." occurs #44546

Open
vdanche opened this issue Oct 31, 2024 · 3 comments
Assignees
Milestone

Comments

@vdanche
Copy link
Member

vdanche commented Oct 31, 2024

Build: 9.0.100 SDK on win11-x64

1.dotnet workload install aspire --version 9.0.100-servicing.24530.1
2.dotnet workload update
3.A UAC prompt will popup, select No. (UAC prompt will popup many times after selecting No)
4.The second UAC prompt popup, select No.
5.The third UAC prompt popup, select yes.

Expected Result:
After step5, workload should be updated without any error.

Actual Result:
Workload update failed: Workload version 9.0.100-servicing.24530.1, which was specified in C:\ProgramData\dotnet\workloads\X64\9.0.100\InstallState\default.json, was not found.

Also failed after running "dotnet workload --info"
Image

Recording.mp4

Note:
All dotnet workload command are broken.
Image

C:\Users\v-danche>dotnet --info
.NET SDK:
Version: 9.0.100
Commit: 59db016f11
System.IO.FileNotFoundException: Workload version 9.0.100-servicing.24530.1, which was specified in C:\ProgramData\dotnet\workloads\X64\9.0.100\InstallState\default.json, was not found.
at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.RefreshWorkloadManifests()
at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider..ctor(String sdkRootPath, String sdkVersion, Func2 getEnvironmentVariable, String userProfileDir, String globalJsonPath, String workloadSetVersion) at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider..ctor(String sdkRootPath, String sdkVersion, String userProfileDir, String globalJsonPath) at Microsoft.DotNet.Workloads.Workload.List.WorkloadInfoHelper..ctor(Boolean isInteractive, VerbosityOptions verbosity, String targetSdkVersion, Nullable1 verifySignatures, IReporter reporter, IWorkloadInstallationRecordRepository workloadRecordRepo, String currentSdkVersion, String dotnetDir, String userProfileDir, IWorkloadResolver workloadResolver)
at Microsoft.DotNet.Cli.WorkloadCommandParser.GetWorkloadsVersion(WorkloadInfoHelper workloadInfoHelper)
at Microsoft.DotNet.Cli.CommandLineInfo.PrintInfo()
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)

Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
RID: win-x64

.NET SDKs installed:
9.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0 [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

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Oct 31, 2024
@vdanche vdanche changed the title [NETSDKE2E][Workload set]After running "dotnet workload update" and clicking "Yes" on UAC prompt, Unhandled exception " Workload update failed:System.IO.FileNotFoundException: Workload version 9.0.100-servicing.24530.1...*, was not found." occurs [NETSDKE2E][Workload set]After running "dotnet workload update" and clicking "Yes" on UAC prompt, Unhandled exception " Workload update failed:System.IO.FileNotFoundException: Workload version 9.0.100-servicing.24530.1..., was not found." occurs Oct 31, 2024
@vdanche vdanche changed the title [NETSDKE2E][Workload set]After running "dotnet workload update" and clicking "Yes" on UAC prompt, Unhandled exception " Workload update failed:System.IO.FileNotFoundException: Workload version 9.0.100-servicing.24530.1..., was not found." occurs [NETSDKE2E][Workload set]After running "dotnet workload update" and clicking "No" first and then "Yes" on UAC prompt, Unhandled exception " Workload update failed:System.IO.FileNotFoundException: Workload version 9.0.100-servicing.24530.1..., was not found." occurs Oct 31, 2024
@v-ainigao
Copy link

This issue also repro's on arm64OS
Image

@marcpopMSFT
Copy link
Member

We probably shouldn't put you in a bad state but it seems pretty reasonable for workload install/update to fail if you click no. We're not asking again for the same command but rather for a future command. We should catch you said no and then stop trying.

@marcpopMSFT marcpopMSFT added this to the 10.0.1xx milestone Oct 31, 2024
@marcpopMSFT
Copy link
Member

Not a blocker

@marcpopMSFT marcpopMSFT removed the untriaged Request triage from a team member label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants