admin管理员组文章数量:1401673
I made successful Silverlight apps with disk access, see here. I also made a UWP app. I tried to add broad file access without success.
<Capabilities>
<Capability Name="broadFileSystemAccess" />
</Capabilities>
Severity Code Description Project File Line Skip Status
Error Validation error. error C00CE014:
App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6, Reason: The element
'{}Capability' is unexpected with respect to the content model of the parent element
'{}Capabilities'.
Expected: {}DeviceCapability. 2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml
So I changed to
<Capabilities>
<DeviceCapability Name="broadFileSystemAccess" />
</Capabilities>
Severity Code Description Project File Line Skip Status Error DEP0700: Application registration failed.
[0x80073CF6] Package could not be registered. (Exception from HRESULT: 0x80073CF6) 2017uwp_run_allow
Can only Microsoft register or sign applications with broad file access after looking into source code of app?
I added broadFileSystemAccess capability to manifest but it fails to run. Please see here Error is
Severity Code Description Project File Line Skip Status
Error Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6,
Reason: The element '{}Capability' is unexpected with respect to the content model of the parent element
'{}Capabilities'. Expected: {}DeviceCapability.
2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml
I made successful Silverlight apps with disk access, see here. I also made a UWP app. I tried to add broad file access without success.
<Capabilities>
<Capability Name="broadFileSystemAccess" />
</Capabilities>
Severity Code Description Project File Line Skip Status
Error Validation error. error C00CE014:
App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6, Reason: The element
'{http://schemas.microsoft/appx/manifest/foundation/windows10}Capability' is unexpected with respect to the content model of the parent element
'{http://schemas.microsoft/appx/manifest/foundation/windows10}Capabilities'.
Expected: {http://schemas.microsoft/appx/manifest/foundation/windows10}DeviceCapability. 2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml
So I changed to
<Capabilities>
<DeviceCapability Name="broadFileSystemAccess" />
</Capabilities>
Severity Code Description Project File Line Skip Status Error DEP0700: Application registration failed.
[0x80073CF6] Package could not be registered. (Exception from HRESULT: 0x80073CF6) 2017uwp_run_allow
Can only Microsoft register or sign applications with broad file access after looking into source code of app?
I added broadFileSystemAccess capability to manifest but it fails to run. Please see here Error is
Severity Code Description Project File Line Skip Status
Error Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6,
Reason: The element '{http://schemas.microsoft/appx/manifest/foundation/windows10/restrictedcapabilities}Capability' is unexpected with respect to the content model of the parent element
'{http://schemas.microsoft/appx/manifest/foundation/windows10}Capabilities'. Expected: {http://schemas.microsoft/appx/manifest/foundation/windows10}DeviceCapability.
2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml
Share
Improve this question
edited Mar 24 at 16:27
Jacek Sniadecki
asked Mar 23 at 22:08
Jacek SniadeckiJacek Sniadecki
72 bronze badges
1 Answer
Reset to default 0Please refer to this document to add the restricted broadFileSystemAccess capability, and the rescap
namespace must be added, and is also added to IgnorableNamespaces
.
<Package
...
xmlns:rescap="http://schemas.microsoft/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap mp rescap">
...
<Capabilities>
<rescap:Capability Name="broadFileSystemAccess" />
</Capabilities>
After adding the capability, please open the file permissions for your app in Settings >Privacy & security >File system.
本文标签: silverlightbroad file system access denied in UWP appStack Overflow
版权声明:本文标题:silverlight - broad file system access denied in UWP app - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744267090a2597999.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论