question

brainbro avatar image
0 Votes"
brainbro asked RoyLi-MSFT commented

Windows App Certification Kit fails online test, but succeeds locally

I'm trying to publish an update to my Xamarin.Forms.UWP app in the Windows store.

I publish the app from Visual Studio 2022 Version 17.2.0.
I run the Windows App Certification Kit (v10.0.22000.194) locally, and it passes all tests.
I manually uploaded the .msixupload file and release the new version of my app, but there, during online validation it fails the WACK with the following errors under "supported API test".

API CxxThrowException in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API C_specific_handler in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API std_exception_copy in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API std_exception_destroy in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API std_terminate in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API _std_type_info_destroy_list in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API _purecall in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API memcpy in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API memmove in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API memset in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API wcsrchr in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?_Xlength_error@std@@YAXPEBD@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?Xout_of_range@std@@YAXPEBD@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrAssign@@YAXPEAXPEBX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrCopy@@YAXPEAXPEBX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrCopyException@@YAXPEAXPEBX1@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrCreate@@YAXPEAX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrCurrentException@@YAXPEAX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrDestroy@@YAXPEAX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API ?ExceptionPtrRethrow@@YAXPEBX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API. API _CxxFrameHandler4 in vcruntime140_1.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.

I find it very strange that my local WACK test succeeds but the online WACK test does not succeed.

Furthermore I find these errors strange, because my app does not reference Microsoft.Web.WebView2.Core.dll so I do not know how to correct this.

partner-center-general
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

First of all, please take the online WACK as standard. Could you please double check what have you done when you update your app?

0 Votes 0 ·

Strange stuff... today I looked at my solution again and noticed this entry 'Microsoft.Web.WebView2.Core.winmd' in my UWP project references.
I could swear it was not there before, as I looked at my references and nuget packages in detail in order to diagnose the problem.
I definitely didn't add this reference by hand.

Strangely enough, when I remove the reference, git does not pick up on a change in the .csproj or any other file. I am able to remove it from the ui, but when I close and re-open the solution the reference is there again.

Also I checked out the version that was previously approved (and now in the store) and then the solution also opens with this reference in the uwp project.

I strongly suspect it has something to do with the fact that I recently upgraded the windows SDK version in order to combat yet another problem related to WACK.

I also checked on VS2019, and on an other pc (where I also upgraded the win sdk), but the same behavior there.

I created a fresh XF project, but did not find VS added a reference there.

I don't know how to examine where this reference comes from or how it's added.

204804-image.png


0 Votes 0 ·
image.png (11.7 KiB)

That's interesting. Are you using winui controls in your project? If the winui NuGet package is not the reason, could you please try to add the NuGet package one by one to see which is the one that automatically?

0 Votes 0 ·

0 Answers