通用Windows平台应用程序注册失败-被AppLocker阻止 [英] Universal Windows Platform app registration fails - blocked by AppLocker

查看:156
本文介绍了通用Windows平台应用程序注册失败-被AppLocker阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Visual Studio 2015(更新3)本地部署UWP应用失败,并显示错误消息:

Deploying a UWP app locally from Visual Studio 2015 (Update 3) fails with the error message:

DEP0700:应用程序注册失败.错误0xC000003A:部署 软件包6dd81a71-9c3a-4204-abaf-886a9b0c29bb_1.0.0.0_x86__kcdnnw7pbsh48的封装为 被AppLocker阻止. (0x80073cf9)

DEP0700 : Registration of the app failed. error 0xC000003A: Deployment of package 6dd81a71-9c3a-4204-abaf-886a9b0c29bb_1.0.0.0_x86__kcdnnw7pbsh48 was blocked by AppLocker. (0x80073cf9)

完整的输出不会增加进一步的洞察力:

The full output doesn't add further insight:

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
1>------ Build started: Project: App2, Configuration: Debug x86 ------
1>  App2 -> c:\users\<username>\documents\visual studio 2015\Projects\App2\App2\bin\x86\Debug\App2.exe 
2>------ Deploy started: Project: App2, Configuration: Debug x86 ------
2>Updating the layout... 
2>Copying files: Total <1 mb to layout... 
2>Checking whether required frameworks are installed...
2>Registering the application to run from layout... 
2>DEP0700 : Registration of the app failed. error 0xC000003A: Deployment of package 6dd81a71-9c3a-4204-abaf-886a9b0c29bb_1.0.0.0_x86__kcdnnw7pbsh48 was blocked by AppLocker. (0x80073cf9)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

已通过File > New > Project... > Blank App (Universal Windows)将其创建为新项目,而没有进行其他更改.

This has been created as new project via File > New > Project... > Blank App (Universal Windows), with no other changes being made.

Visual Studio以管理员身份运行.

Visual Studio is running as Administrator.

在Windows 10(1607 Build 14393)上打开Developer mode进行设置.

Windows 10 (1607 Build 14393) is set up with Developer mode on.

其他 建议包括删除%LocalAppData%\Packages中的应用程序目录,但没有与此应用程序对应的目录.

Other suggestions include deleting the app directory from %LocalAppData%\Packages, but there is no directory corresponding to this app.

这里的问题可能是什么?有什么建议可以解决此问题吗?

What could the issue be here? Is there any advice on next steps to troubleshoot this?

推荐答案

每次我尝试在UWP项目中打开XAML文件时,都会在Visual Studio 2017中弹出同样的错误.只需创建文件夹C:\ Windows \ System32 \ AppLocker即可对其进行修复.

Had this same error popping up with Visual Studio 2017 every time I tried to open a XAML file in UWP project. Fixed it by simply creating the folder C:\Windows\System32\AppLocker.

这篇关于通用Windows平台应用程序注册失败-被AppLocker阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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