Access Denied when using WinJS promise

68 Views Asked by At

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?

1

There are 1 best solutions below

1
Alan Yao - MSFT On BEST ANSWER

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.