microsoft / microsoft/winget-studio

When running as administrator I cannot manage configuration files

Open
#63 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C#
Stars
67
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Brief description of your issue

When running as administrator I cannot manage configuration files

Steps to reproduce

Launch WinGet Studio as non-elevated user
Go to manage configuration file
Load a configuration file
Observe it loads normally
Exit WinGet Studio
Go to start menu
Right click WinGet Studio
Launch as Administrator
Approve UAC prompt
Go to manage configuration file
Load a configuration file
Observe it Does not load

Expected behavior

It should load

Actual behavior
Description: A .NET application failed.
Application: ConfigurationRemotingServer.exe
Path: C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.26.430.0_x64__8wekyb3d8bbwe\ConfigurationRemotingServer\ConfigurationRemotingServer.exe
Message: Failed to load the dll from [C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.26.430.0_x64__8wekyb3d8bbwe\ConfigurationRemotingServer\hostfxr.dll], HRESULT: 0x80070005
The library hostfxr.dll was found, but loading it from C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.26.430.0_x64__8wekyb3d8bbwe\ConfigurationRemotingServer\hostfxr.dll failed
  - Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=798306
Environment

0.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the elevated and non-elevated configuration-file loading flows described in the issue, then inspect the ConfigurationRemotingServer.exe startup path and the reported hostfxr.dll failure. Done means configuration files load successfully when WinGet Studio is launched as administrator, without the .NET application error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.