Thrown when access to a resource or feature is denied.
If you hit this exception, ensure that you have requested the appropriate capability and made the required declarations in the package manifest of your app. For more information, see Configure a Windows 8.1 app package by using the manifest designer and the COMException class.
Minimum supported client: Windows 8
Minimum supported server: Windows Server 2012