Troubleshooting Lync Controls applications

Lync 2013

Beyond the basics topic

Learn about troubleshooting Microsoft Lync 2013 Controls application by using UCBase class read-only properties to display Microsoft Lync Control initialization errors at runtime.

Last modified: December 26, 2012

Applies to: Lync 2013 | Lync Server 2013

Use read-only properties inherited from the UCBase class to display Microsoft Lync Control initialization errors at runtime. Lync Controls automatically establish a connection to Microsoft Lync 2013 when they load. The first control to load establishes the connection, which is shared by all subsequently loaded controls.

When a Lync Control fails to initialize the connection to Lync 2013, the initialization state and error are stored in the following properties on the control.




Provides an enumeration value of type LyncControlInitializationError to indicate the reason for the initialization failure.


Returns a Boolean value indicating whether initialization failed.


Provides a string message describing the error.

Use the following XAML code to display Lync Control initialization errors at runtime.

  <TextBlock HorizontalAlignment="Left" Text="Application Initialization Failed:" />
  <TextBox Text="{Binding InitializationFailed, ElementName=presence, Mode=OneWay}" />
  <TextBlock HorizontalAlignment="Left" Text="Application Initialization Error:" />
  <TextBox Text="{Binding InitializationErrorMessage, ElementName=presence, Mode=OneWay}" />
  <controls:PresenceIndicator Source="" />