创建应用程序包时出错 [英] Error when creating App Packages

查看:55
本文介绍了创建应用程序包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人理解下一段要说的话吗?

Does anybody understand what the following paragraph is trying to say?

我该怎么办才能消除此错误,以便可以在Windows Store上提交我的应用程序?

What do I have to do to get rid of this error so that I can submit my app on Windows Store?

任何解决方案都可能会有所帮助.谢谢!

Any solution might help. Thanks!

'Libraries imported are as follows:
Imports Windows.Storage
Imports Windows.Web.Http
Imports Windows.UI.Popups
Imports Windows.Security.Cryptography
Imports System.Text
Imports System.Numerics
Imports WinRTXamlToolkit.Controls.DataVisualization.Charting

发现错误:受支持的API测试检测到以下错误:

System.UnauthorizedAccessException:访问路径'C:\ Program文件(x86)\ Windows Kits \ 10 \ App认证Kit \ SupportedAPIs-x64.xml'被拒绝.在System.IO .__ Error.WinIOError(Int32 errorCode,字符串mayFullPath)在System.IO.FileStream.Init(字符串路径,FileMode模式,FileAccess访问,Int32权限,布尔值useRights,FileShare共享,Int32bufferSize,FileOptions选项,SECURITY_ATTRIBUTES secAttrs,字符串msgPath,布尔bFromProxy,布尔useLongPath,布尔checkHost)在System.IO.FileStream..ctor(字符串路径,FileMode模式,FileAccess访问,FileShare共享,Int32 bufferSize)位于System.Xml.XmlDownloadManager.GetStream(Uri uri,ICredentials凭据,IWebProxy代理,RequestCachePolicy cachePolicy)位于System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri,字符串角色,类型ofObjectToReturn)System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)在System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode代码,CleanupCode backoutCode,对象userData)位于System.Threading.CompressedStack.Run(CompressedStack compressionStack,ContextCallback回调,对象状态)位于System.Xml.XmlTextReaderImpl.OpenUrl()在System.Xml.XmlTextReaderImpl.Read()位于System.Xml.XmlLoader.Load(XmlDocument doc,XmlReader reader,BooleanSystem.Xml.XmlDocument.Load(XmlReader reader)处的preserveWhitespace)在System.Xml.XmlDocument.Load(String filename)在Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.GetNativeAllowList()在Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.ExecuteSharedTests(EnumApplicationTypeappType,字符串packageFullName),位于Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.Test(UapAppuapApp)Microsoft.Windows.SoftwareLogo.TestBase.TestBase.ExecuteTest()[HRESULT 0x80131604]测试操作失败:"ExecuteTest".

System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Windows Kits\10\App Certification Kit\SupportedAPIs-x64.xml' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.GetNativeAllowList() at Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.ExecuteSharedTests(EnumApplicationType appType, String packageFullName) at Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.Test(UapApp uapApp) at Microsoft.Windows.SoftwareLogo.TestBase.TestBase.ExecuteTest() [HRESULT 0x80131604] Test operation failed: 'ExecuteTest'.

如果未解决,则会产生影响:使用Windows SDK中不包含的API适用于Windows应用商店的应用违反了Windows应用商店的认证要求.

Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Store apps violates the Windows Store certification requirements.

如何解决:查看错误消息以识别不正确的APIWindows SDK for Windows Store应用程序的一部分.请注意,内置于调试配置中或未启用.NET Native(如果有的话)可能无法通过此测试,因为这些环境可能会拖累在不受支持的API中.在发布配置中重新测试您的应用,然后如果适用,则启用.NET Native.有关更多信息,请参见下面的链接信息:Windows应用商店应用程序中Windows API的替代方法.

How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Windows 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 Windows Store apps.

推荐答案

也遇到了同样的问题.文件SupportedAPIs-x64.xml的所有者已设置为none,因此我将其更改为SYSTEM.同样在权限"下有一行系统",该主体的其他列为空.还有另一个主要的系统,它的其他专栏都还可以.所以我删除了第一个SYSTEM主体,一切正常.只需打开该文件的属性,然后在安全性"下单击高级"按钮即可.基本上,我将文件的权限与SupportedAPIs-x86.xml的权限进行了比较.如果可以,请尝试在记事本中打开文件.

had had the same problem. The owner of the file SupportedAPIs-x64.xml had been set to none, so I changed it to the SYSTEM. Also under Permissions there had been a line SYSTEM and other columns for this principal had been empty. There were another principal SYSTEM and its other columns were ok. So I deleted the first SYSTEM principal and everything was OK. Just open properties of that file and under Security click on Advanced button. Basically I compared permissions of the file with permissions of the SupportedAPIs-x86.xml. Try to open the file in notepad, if it works.

这篇关于创建应用程序包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆