Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to get available audio device from Lync 2013 sdk
    primarykey
    data
    text
    <p>When I try to get the list of available audio devices like this.</p> <pre><code>LyncClient client = LyncClient.GetClient(); foreach (Device dev in client.DeviceManager.AudioDevices) { //Do something } </code></pre> <p>I get the error <code>Exception has been thrown by the target of an invocation.</code></p> <pre><code>"Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Uc.IAudioDevice2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{86B3E5FE-4635-4C1E- A725-C80B71D04984}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))." </code></pre> <p>Here is the stack trace</p> <pre><code>at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Microsoft.Lync.Model.Internal.UCWCache.CreateUCW(Object source, CCOMInfo ccomInfo) at Microsoft.Lync.Model.Internal.UCWCache.GetITTargetNS(Object source) at Microsoft.Lync.Model.Internal.UCEnumerator`2.get_Current() at Microsoft.Lync.Model.Internal.UCEnumerator`2.System.Collections.Generic.IEnumerator&lt;S&gt;.get_Current() </code></pre> <p>And the inner exception stack trace</p> <pre><code>at Microsoft.Lync.Model.Device.AudioDevice.INTERNAL_Init(IAudioDevice initInterface) at Microsoft.Lync.Model.Device.AudioDevice.INTERNAL_Init_Object(Object initInterface) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload