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.