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

Error installing WindowsAppSDK on windows server 2022 #2829

Closed
klemensurban opened this issue Aug 6, 2022 · 16 comments
Closed

Error installing WindowsAppSDK on windows server 2022 #2829

klemensurban opened this issue Aug 6, 2022 · 16 comments
Assignees
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-External bug Something isn't working Status: Fixed

Comments

@klemensurban
Copy link

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.

@btueffers btueffers added area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) bug Something isn't working labels Aug 8, 2022
@sachintaMSFT
Copy link
Contributor

sachintaMSFT commented Aug 8, 2022

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 ?

@klemensurban
Copy link
Author

klemensurban commented Aug 10, 2022 via email

@sachintaMSFT
Copy link
Contributor

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.

@Andrew-lll
Copy link

@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

@michael-hawker
Copy link

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.

@sachintaMSFT
Copy link
Contributor

sachintaMSFT commented Sep 20, 2022

@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.

@conioh
Copy link

conioh commented Sep 22, 2022

@sachintaMSFT wrote:

It is a duplicate of the issue# #2829. Latest status of the root cause and the fix is being shared there.

I'm here at #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?

@sachintaMSFT
Copy link
Contributor

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.

@TemperedEnterprises
Copy link

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?

@sachintaMSFT
Copy link
Contributor

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.

@Andrew-lll
Copy link

Andrew-lll commented Oct 24, 2022

@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.

@sachintaMSFT
Copy link
Contributor

sachintaMSFT commented Oct 26, 2022

@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.

@TemperedEnterprises
Copy link

@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.

@Andrew-lll
Copy link

@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.

@bpulliam
Copy link
Collaborator

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

@michael-hawker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-External bug Something isn't working Status: Fixed
Projects
None yet
Development

No branches or pull requests

8 participants