Click here to Skip to main content
16,017,944 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
UWP app submission, The following Test fails on the Windows App Certification Kit:
Quote:
Supported APIs
· Error Found: The supported APIs test detected the following errors:
o API IsTokenRestricted in advapi32.dll is not supported for this application type. sni.dll calls this API.
· Impact if not fixed: Using an API that is not part of the Windows SDK for Microsoft Store apps violates the Microsoft Store certification requirements.
· How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Microsoft Store apps. Please note, apps that are built in a debug configuration or without .NET Native enabled (where applicable) can fail this test as these environments may pull in unsupported APIs. Retest your app in a release configuration, and with .NET Native enabled if applicable. See the link below for more information:
Alternatives to Windows APIs in Microsoft Store apps.


What I have tried:

Most issues found for this relate to
Microsoft.Data.SqlClient
e.g.Package causes a new UWP app to fail Windows App Certification for Deployment to Microsoft Store · Issue #356 · dotnet/SqlClient · GitHub[^]

The focus sni.dll is the main dll refered to.

A search of all packages don't make any references to these Dlls
Posted
Updated 27-Aug-21 2:34am

1 solution

Loopback flags were indicated as a possible issue. After deactivation, tests still failed.

One of the following references was the real culprit:
Microsoft.VisualStudio.Services.Client
Microsoft.AspNetCore.Mvc.Core
Microsoft.IdentityModel.Clients.ActiveDirectory


There were references to one of these that I was not using and part of a cleanup.

I believe that it is:
Microsoft.VisualStudio.Services.Client

Description from NuGet:
Integrate with Azure DevOps Server 2019 and Azure DevOps Services from desktop-based, ASP.NET, and other Windows applications.  Provides access to shared platform services such as account, profile, identity, security, and more via public REST APIs.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900