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

Fresh MAUI project failing to deploy #3485

Closed
DeeJayhX opened this issue Nov 20, 2021 · 3 comments
Closed

Fresh MAUI project failing to deploy #3485

DeeJayhX opened this issue Nov 20, 2021 · 3 comments
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/windows 🪟 t/bug Something isn't working

Comments

@DeeJayhX
Copy link

Description

A fresh MAUI UI project (non-blazor) gives deployment errors regarding Appxmanifest.xml.

This happens on:

  • Windows 10 => 11 upgraded desktop running 5900x/128GB RAM
  • Windows 11 brand new install on a Dell Latitude 7490

Both on VS 17.1.0 Preview 1.1 with Developer mode enabled. Cannot get them to run on the installed Pixel emulator for android either. No iPhone to test iOS. Tried modifying Appxmanifest.xml to have full control by Everyone, deploy, same issue. Let me know if I can provide anything else.

Steps to Reproduce

Create Project > new .NET MAUI App
Start with debugging for Windows Machine

Version with bug

Preview 10 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 21H2 Build 22000.318 - SDK net6.0-windows10.0.19041

Did you find any workaround?

No

Relevant log output

Creating a new clean layout...
Copying files: Total 113 mb to layout...
Checking whether required frameworks are installed...
Registering the application to run from layout...
2>Deployment of the application to the target device failed.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
DEP0700: Registration of the app failed. [0x80070005] error 0x80070005: Opening file from location: AppxManifest.xml failed with error: Access is denied.
@DeeJayhX DeeJayhX added the t/bug Something isn't working label Nov 20, 2021
@jsuarezruiz jsuarezruiz added the area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Nov 22, 2021
@StevenTCramer
Copy link

I had this problem also then ran. https://github.com/Redth/dotnet-maui-check

which updated some Android SDKs.

But now I get some 1990s looking phone when it is supposed to be a Pixel

image

@azizimusa
Copy link

just deploy to your real device.

@Eilon
Copy link
Member

Eilon commented Feb 11, 2022

Hi, we think this issue has been fixed in more recent previews of .NET MAUI and Visual Studio. Please try installing the latest preview per the instructions at https://docs.microsoft.com/dotnet/maui/get-started/installation. If you are still experiencing an issue, please file a new issue with updated details.

@Eilon Eilon closed this as completed Feb 11, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants