WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Error installing WindowsAppSDK on windows server 2022

Open klemensurban opened this issue 3 years ago • 8 comments

Package deployment result : 0x8000000b Install failed. Please contact your software vendor. ExtendedError: 0x8000000b The operation attempted to access data outside the valid range ErrorMessage: Deployment Add operation with target volume C: on Package Microsoft.WindowsAppRuntime.1.1_1003.565.600.0_x64__8wekyb3d8bbwe from: (MSIA653.tmp) failed with error 0x8000000B. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.One or more install operations failed. Result: 0x8000000b

when attemting to install on windows server 2022

no support on server 2022 (2019?)? -> no WinUI 3 on Terminal Servers .. -> have to stay with WPF ?

best regards k.u.

klemensurban avatar Aug 06 '22 19:08 klemensurban

WinAppSDK framework package failing to install on Server 2022 is a known issue tracked internally by https://task.ms/40529191. The fix for this issue is currently scheduled to be serviced to Server 2022 in October.

Are you seeing the issue on Sever 2019, as well ?

sachintaMSFT avatar Aug 08 '22 20:08 sachintaMSFT

Hi,

i was just able to test this on windows server 2019; on this os WinAppSDK install without an error / a warning

best regards, klemens

Bundesministerium für Bildung, Wissenschaft und Forschung Abteilung Praes/13 – IKT

DI Klemens Urban Leiter Referat Praes/13b +43 1 531 20-9720 Minoritenplatz 5, 1010 Wien @.@.> www.bmbwf.gv.athttp://www.bmbwf.gv.at/

Von: sachintaMSFT @.> Gesendet: Montag, 8. August 2022 22:02 An: microsoft/WindowsAppSDK @.> Cc: Urban Klemens @.>; Author @.> Betreff: Re: [microsoft/WindowsAppSDK] Error installing WindowsAppSDK on windows server 2022 (Issue #2829)

WinAppSDK framework package failing to install on Server 2022 is a known issue tracked internally by https://task.ms/40428533.

Are you seeing the issue on Sever 2019, as well ?

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/WindowsAppSDK/issues/2829#issuecomment-1208551684, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMOFSNBF7245YBB2G3D2L23VYFRRZANCNFSM55ZHYW2A. You are receiving this because you authored the thread.Message ID: @.@.>>

klemensurban avatar Aug 10 '22 14:08 klemensurban

Thanks @klemensurban for testing. That is in line with our expectation that the issue is only on Windows Server 2022. As slated earlier, the fix will be in the OS itself and the fix is currently scheduled to be serviced to Server 2022 in October.

sachintaMSFT avatar Aug 10 '22 16:08 sachintaMSFT

@sachintaMSFT @davidortinau

Scope:

It appears that all current MAUI developers working on Server 2022 are blocked by this. Unfortunately, waiting months until October to be able to develop apps in .net MAUI is simply not possible for our developers (which is probably the case elsewhere, and many developers must run Server to emulate the prod env).

Workarounds?

Is there any intermediate step that can be done to workaround the issue until then:

  • a manually installable optional patch for Server 2022?
  • workaround instructions to manually install WindowsAppRuntime1.1?
  • a last installable version of WindowsAppRuntime? Previous versions of VS2022 preview + MAUI (VS2022 17.2?) have ran without issue on Server 2022 - is there an earlier version of the WindowsAppRuntime that we can manually roll back to, or that MAUI can roll back to in order to regain Server 2022 support?

Prevention:

For the MAUI team, adding Server 2022 to the pre-release testing pipeline would catch these issues before they reach the customer

Andrew-lll avatar Aug 19 '22 19:08 Andrew-lll

This has been blocking the Windows Community Toolkit for months now in trying to update our new infrastructure for testing and now our main repository as well. We are stuck on 1.0.x until this is resolved.

michael-hawker avatar Sep 07 '22 20:09 michael-hawker

@Andrew-lll,

  1. There is currently no work around to the issue with installing WindowsAppSDK 1.1 on Windows Server 2022. Installing WindowsAppSDK 1.1 on Windows Server 2019 works or Installing WindowsAppSDK 1.0 on Windows Server 2022 works.
  2. There is no WinAppSDK fix. This is an OS issue requiring an OS update.
  3. We've been discussing servicing timelines and the earliest opportunity is the current October target.

sachintaMSFT avatar Sep 20 '22 23:09 sachintaMSFT

@sachintaMSFT wrote:

It is a duplicate of the issue# https://github.com/microsoft/WindowsAppSDK/issues/2829. Latest status of the root cause and the fix is being shared there.

I'm here at https://github.com/microsoft/WindowsAppSDK/issues/2829. I don't see the root cause. For some strange reason I don't have access to https://task.ms/40529191 so I don't know what's going on there.

To be clear, "That is in line with our expectation that the issue is only on Windows Server 2022" is not a root cause nor is "As slated earlier, the fix will be in the OS itself and the fix is currently scheduled to be serviced to Server 2022 in October."

May we know what the root cause is?

conioh avatar Sep 22 '22 01:09 conioh

https://task.ms/40529191 is Microsoft internal link that is tracking the bug in OS and hence, our partners outside the company won't have access to it.

The root cause is that support for undocked DEH is incomplete in Server 2022 (support for undocked DEH was only planned for Windows 11 client Desktop and equivalent Server SKUs. It is not supposed to be in Server 2022 at all even in half complete state) and WindowsAppSDK framework package added Undocked DEH in it's 1.1 version where as it's 1.0 version doesn't have it.

sachintaMSFT avatar Sep 22 '22 16:09 sachintaMSFT

I, also, cannot run any MAUI .NET app on Windows Server 2022. I don't see any fix. Windows Updates is on and functioning.

Is there a link to an install file to fix this so I can develop and run on Windows Server 2022?

TemperedEnterprises avatar Oct 14 '22 01:10 TemperedEnterprises

The fix in OS that will help WinAppSDK installer to succeed on Windows Server 2022 is anticipated to be released on 3rd Tuesday of October which is 18th October.

sachintaMSFT avatar Oct 14 '22 02:10 sachintaMSFT

@sachintaMSFT Do you have an update on this fix (when it will be released and in which update)?

Tomorrow will be 1 week past Oct 18th. After testing, the Oct 11 update: 2022-10 Cumulative update for 21H2 (KB5018421) with the latest .NET Maui framework does not resolve the issue.

Andrew-lll avatar Oct 24 '22 18:10 Andrew-lll

@Andrew-lll , Did you try the one from Oct 17th - it's out of band update - KB5020436 ?

The fix will be auto updated on Server machines on 2nd Tuesday of November. Until then, on demand update of the above KB should fix the issue.

sachintaMSFT avatar Oct 26 '22 13:10 sachintaMSFT

@Andrew-lll , Did you try the one from Oct 17th - it's out of band update - KB5020436 ?

The fix will be auto updated on Server machines on 2nd Tuesday of November. Until then, on demand update of the above KB should fix the issue.

I just installed KB5020436 on a Server 2022 machine. It installed successfully. I then created a new .NET MAUI app in Visual Studio 2022 and then pressed "Run". I got a deployment error same as before.

TemperedEnterprises avatar Oct 26 '22 15:10 TemperedEnterprises

@sachintaMSFT I was able to resolve the issue on Server 2022 by installing KB5018485, which is a larger update that replaces KB5020436. Previously, I did not install either of these as they did not indicate in the release notes that they resolved this issue - but they do! Thank you for following up on this.

@TemperedEnterprises You can install KB5018485 as an optional update directly through windows update. If after installing this you are still receiving errors, most likely there is a different issue at work not related to the app SDK.

Andrew-lll avatar Oct 26 '22 18:10 Andrew-lll

Marking as Fixed since the patch is now available. It will be in the next OS update as well.

bpulliam avatar Oct 28 '22 15:10 bpulliam

Looks like the KB listed above should be applied on next Tuesday's VM revision? See: https://github.com/actions/runner-images/issues/6585

michael-hawker avatar Nov 17 '22 21:11 michael-hawker