Forum Discussion

M_Baeurle's avatar
M_Baeurle
Copper Contributor
Jun 12, 2024

Can't install our app from Store, fails with codes 0x800701c5 / 800700B7

Hello everybody.

I hope I'm posting to the right place, first time here, so please excuse any mistakes.

I already posted this to the Q+A area on learn.microsoft.com about a week ago, hoping that somebody from Microsoft would have a look, but zero reply so far.

 

We want to publish our app, that is made with Xamarin Forms, to the Microsoft Store. WACK does not report any problems with the uploaded app.

Installation fails for all betatesters, the store app reports error 0x800701c5.

So I tried installation with winget: winget install --logs 9NK8G21NBK6B

 

I can supply the complete log, but these should be the relevant lines:

2024-05-28 08:48:57.157 [CORE] WinGet, version [1.7.11261], activity [{B9AEE5D2-4A9C-460A-A6A7-09D6EB082745}]

2024-05-28 08:48:57.157 [CORE] OS: Windows.Desktop v10.0.19045.4412

2024-05-28 08:48:57.157 [CORE] Command line Args: "C:\Users\m.baeurle\AppData\Local\Microsoft\WindowsApps\winget.exe" install --logs 9NK8G21NBK6B

2024-05-28 08:48:57.157 [CORE] Package: Microsoft.DesktopAppInstaller v1.22.11261.0

2024-05-28 08:48:57.157 [CORE] IsCOMCall:0; Caller: winget-cli

2024-05-28 08:48:57.164 [CLI ] WinGet invoked with arguments: 'install' '--logs' '9NK8G21NBK6B'

2024-05-28 08:48:57.165 [CLI ] Found subcommand: install

[...]

2024-05-28 08:48:58.688 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.527.2133.978_neutral__8wekyb3d8bbwe\Public\index.db'

2024-05-28 08:48:58.690 [REPO] Opened SQLite Index with version [1.7], last write [2024-05-27 22:32:52.000]

2024-05-28 08:48:58.727 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'

2024-05-28 08:48:58.731 [REPO] Reading MSI UpgradeCodes

2024-05-28 08:48:58.861 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\1_0\Interface_1_0.cpp(197)\WindowsPackageManager.dll!00007FFCB63474CC: (caller: 00007FFCB634E129) Exception(1) tid(6e8c) 800700B7 Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist.

2024-05-28 08:48:58.861 [REPO] Ignoring duplicate ARP entry Machine|X86|Instant C#_is1 [Instant C#]

2024-05-28 08:48:59.017 [REPO] Reading MSI UpgradeCodes

2024-05-28 08:48:59.075 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\1_0\Interface_1_0.cpp(197)\WindowsPackageManager.dll!00007FFCB63474CC: (caller: 00007FFCB634E129) Exception(2) tid(6e8c) 800700B7 Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist.

[This message is repeated about 30 times.]

2024-05-28 08:48:59.619 [REPO] Opening database for ReadWrite at 'C:\Users\m.baeurle\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'

2024-05-28 08:48:59.623 [REPO] Opened SQLite Index with version [1.7], last write [2024-04-05 10:38:35.000]

2024-05-28 08:48:59.625 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch

2024-05-28 08:48:59.734 [REPO] Response status: 200

2024-05-28 08:48:59.735 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/9NK8G21NBK6B?Market=DE

2024-05-28 08:49:00.001 [REPO] Response status: 200

2024-05-28 08:49:00.002 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:PackageFamilyName='digi-softwaregmbh.12487985175e8_22nq861yrmj7r'[Exact] Include:NormalizedNameAndPublisher='digi-app 2'+'digi-software gmbh'[Exact]

2024-05-28 08:49:00.009 [REPO] Opening database for ReadWrite at 'C:\Users\m.baeurle\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'

2024-05-28 08:49:00.011 [REPO] Opened SQLite Index with version [1.7], last write [2024-05-27 14:28:20.000]

2024-05-28 08:49:00.033 [CLI ] Found one app. App id: 9NK8G21NBK6B App name: DIGI-APP 2

2024-05-28 08:49:00.039 [REPO] Attempting to open pinning database: C:\Users\m.baeurle\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db

2024-05-28 08:49:00.039 [CLI ] Manifest fields: Name [DIGI-APP 2], Version [Unknown]

2024-05-28 08:49:06.323 [CLI ] Package agreements accepted in prompt

2024-05-28 08:49:06.347 [CORE] Getting entitlement for ProductId: 9NK8G21NBK6B

2024-05-28 08:49:06.347 [CORE] Get user entitlement.

2024-05-28 08:49:07.446 [CORE] Get entitlement succeeded.

2024-05-28 08:49:07.695 [CORE] Started MSStore package execution. ProductId: 9NK8G21NBK6B PackageFamilyName: DIGI-SOFTWAREGmbH.12487985175E8_22nq861yrmj7r

2024-05-28 08:49:16.076 [CLI ] MSStore install failed. ProductId: 9NK8G21NBK6B HResult: 0x800701c5

2024-05-28 08:49:16.076 [CLI ] Terminating context: 0x800701c5 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\MSStoreInstallerHandler.cpp:68

 

My questions are:

  1. What do the error codes mean, what is the description of these errors?
  2. What is going wrong with the installation?
  3. How can I fix it?

The sentence in German in the lines that come multiple times, "Eine Datei kann nicht..." can be translated as follows: "A file cannot be created when it already exists."

So an additional question is: What file/s could be the problem?

I made sure that no older or similar app is installed. Also running winget with or without admin privileges makes no difference.

 

Any help with this will really be appreciated.

Best regards,

Markus

  • M_Baeurle's avatar
    M_Baeurle
    Copper Contributor
    Meanwhile I tried some more things.
    - A minimal Xamarin Forms app installs fine, so there is no fundamental problem with Xamarin Forms apps or my build and publishing process.
    (Both apps target .NET Standard 2.0, have "de" as the default language and support x64 and ARM, so these can be ruled out as the problem causes.)
    - Watching file access during the install process with Process Monitor was inconclusive, as there are just too many accesses being made, with many many error codes shown, to be able to pinpoint what the problematic files (see original post) could be.

    Maybe somebody can say something about different questions I have now:
    Did anybody have similar problems, where the resources and assemblies included by an app led to the error I described, or to similar problems? If yes, what were your problem and solution?

Resources