Thrown when access to a resource or feature is denied.
public ref class AccessDeniedException : COMException, IException, IPrintable, IEquatable
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 Using the Manifest Designer (Windows Store apps) and the COMException class.