Quantcast
Channel: Lync 2010 and OCS - Lync Clients and Devices forum
Viewing all articles
Browse latest Browse all 3260

LyncClientException generic com can't catch...

$
0
0

Hello everyone!

Please, can you help me in my proplem..?

My WPF application shows the list of co-wokers with a Lync PresenceIndicator class. When i click on one person - program load information about person and the indicator with Lync State -  it is okay. Two - its too okay, and i can click around 10 person (sometimes more, sometimes less) when throws the Microsoft.Lync.Model.LyncClientException unhandled (from external code)

I can't catch it from code. There is try-catch constructions everywhere, but they are no catches this exception. I've tried to catch it by breakpoints, but it is too was useless.

Here it is exception stack...

Microsoft.Lync.Model.LyncClientException unhandled
  HResult=-2146233088
  Message=Generic COM Exception. Code is 0x8002801D.
  Source=Microsoft.Lync.Controls
  InternalCode=2147647517
  StackTrace:
       в Microsoft.Lync.Controls.UCBase.<>c__DisplayClass1.<ThrowFromDispatcher>b__0()
       в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       в System.Windows.Threading.DispatcherOperation.InvokeImpl()
       в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       в System.Windows.Threading.DispatcherOperation.Invoke()
       в System.Windows.Threading.Dispatcher.ProcessQueue()
       в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       в System.Windows.Application.RunInternal(Window window)
       в System.Windows.Application.Run()
       в ComputerManager.App.Main() в d:\Projects\Maria\WpfApplication2\WpfApplication2\obj\Debug\App.g.cs:strin 0
       в System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       в System.Threading.ThreadHelper.ThreadStart()
  InnerException: 
Please, help me!!

(Info about person load as a UserControl) 

I've tried different ways to solve the problem. I've used the AppDomain.FirstChanceException (and AppDomain.UnhandledException)  events, but that was useless. I can predict these exception, but I can't handle it. And also, I can't to know exact point, where it's happening.

Seems that trouble in Lync library (Microsoft.Lync.Model.dll). But how can I fix this problem?

Please, Lync masters, help! (Lync 2013)


Viewing all articles
Browse latest Browse all 3260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>