Thrown when access to a resource or feature is denied.
public ref class AccessDeniedException : COMException,
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.
Minimum supported client: Windows 8
Minimum supported server: Windows Server 2012