Skip to content

[NETSDKE2E]Error happens "Workload installation failed: Access to the path 'C:\ProgramData\dotnet\workloads\Microsoft.NET.Runtime.MonoAOTCompiler.Task.Msi.x64\7.0.0-rtm.22507.1\msi.json' is denied." when installing workload using another account. #28450

@vdanche

Description

@vdanche

1.Install RTM SDK(7.0.100-rtm.22510.12) and then install workload with below command in CLI
2.dotnet workload install wasm-tools --skip-manifest-update
3. add another domain account as a admin into current machine
image

  1. Login with anther domain account and then install workload with below command in CLI
    dotnet workload install maccatalyst --skip-manifest-update
    Below error happens
    Workload installation failed: Access to the path 'C:\ProgramData\dotnet\workloads\Microsoft.NET.Runtime.MonoAOTCompiler.Task.Msi.x64\7.0.0-rtm.22507.1\msi.json' is denied.
    image

Note:

  1. Folder 7.0.0-rtm.22507.1 permission as below.
    image

image

  1. Run cmd as an administrator and then install workload successfully without any issue.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions