Export (0) Print
Expand All

Troubleshooting Lync Controls applications

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.

Property

Description

InitializationError

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

InitializationFailed

Returns a Boolean value indicating whether initialization failed.

InitializationErrorMessage

Provides a string message describing the error.

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

<StackPanel>
  <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="sip:elise@contoso.com" />
</StackPanel>
Show:
© 2015 Microsoft