RecklessSergio
RecklessSergio

Reputation: 836

Access Denied when using WinJS promise

I am trying to get dial device from an ID, but when I use .done() or .then() on .fromIdAsync() as given in the api DialDevice.FromIdAsync | fromIdAsync method. I am getting access denied error and app is getting closed

What wrong am I doing?

Upvotes: 0

Views: 69

Answers (1)

Alan Yao - MSFT
Alan Yao - MSFT

Reputation: 3304

Check if you've declared the extensibility point of type windows.dialProtocal in appxmanifest using something like:

   <Extensions> 
     <uap:Extension Category="windows.dialProtocol"> 
       <uap:DialProtocol Name="your app's DIAL name" /> 
     </uap:Extension> 
   </Extensions> 

If you still encounter exception, I think that may indicate DIAL is not supported. The c# officle sample is not a code reference for js developer, but should be a good testing project to verify if it works in c# project.

Upvotes: 1

Related Questions