locked
UnauthorizedAccessException with Windows.Media.Capture.ScreenCapture.GetForCurrentView()

    Question

  • Hi,

    I got an exception when I call this API:

    var screenCapture = Windows.Media.Capture.ScreenCapture.GetForCurrentView();

    Exception: 'System.UnauthorizedAccessException'

    I called it on the Emulator. How can I get the permisson for my app?

    Thanks

    Sunday, July 27, 2014 12:08 PM

All replies

  • You have to go to your WMAppManifest file. From there within the capabilities you have to enable these:

    >Microphone

    >WebCam

    For more refer this thread.

    Hope it helps!

    Sunday, July 27, 2014 5:34 PM
  • Thanks for your reply. 

    I tried but it didn't work.

    It still shows an error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

    Any suggestion?

    Tuesday, July 29, 2014 7:37 PM