Pages Menu
TwitterRssFacebook

Posted by on Jul 24, 2012 in Skype for Business® (Lync®) | 2 comments

Using Lync 2010 applications with Lync 2013 (and Lync 2013 applications with Lync 2010)

Using Lync 2010 applications with Lync 2013 (and Lync 2013 applications with Lync 2010)

So, the Lync 2013 Preview is now out and available.

If you have installed the Lync 2013 Beta client, then you may notice two things:

  • Any attempt to use LyncClient.GetClient() fails.
  • Any attempt to use LyncClient.GetClient() causes the Lync 2013 Beta client to gain the focus.

For any background applications which poll the client regularly, this manifests itself as an annoying focus-grab every so often (along with the application not working).

The Errors

When attempting to call LyncClient.GetClient() compiled using the Lync 2010 SDK against a Lync 2013 Beta client:

  1. The client immediately gains focus.
  2. After a delay of around 30 seconds, the following exception is raised:
    Generic COM Exception. Code is 0x80080005.
     at Microsoft.Lync.Model.LyncClient.EnsureOI()
     at Microsoft.Lync.Model.LyncClient.GetClient()
     at LyncClientReproConsole.Program.Main(String[] args)

When attempting to call LyncClient.GetClient() compiled using the Lync 2013 Beta SDK against a Lync 2010 client:

The call immediately fails with:

Microsoft.Lync.Model.ClientNotFoundException: The host process is not running
 at Microsoft.Lync.Model.LyncClient.EnsureOI()
 at Microsoft.Lync.Model.LyncClient.GetClient()
 at ConsoleApplication1.Program.Main(String[] args)

Workaround

We reached out to Microsoft about this, as it’s potentially a big deal, having such a separation between the two versions:

They assured us that apps compiled using the 2010 SDK should “just work” against the 2013 client.

However, anything compiled using Lync 2013 Beta SDK will not work with the Lync 2010 SDK.

The problem from above (the Generic COM Exception) is caused by having both the 2010 and the 2013 client installed on your machine. This is probably a fairly common setup for most people trying the Beta client, as the installation of the 2013 client doesn’t un-install the 2010 one. I imagine this won’t be the behavouir for the final release, as it doesn’t make a lot of sense to have both clients installed, if both are fully released.

If you uninstall the 2010 client before installing the 2013 one, you shouldn’t run into these problems.

 

2 Comments

  1. Thanks for posting the info. Uninstalling Lync 2010 and then exiting the 2013 client and restarting it fixed this problem for me.

  2. Could anyone please let me know if Lync2013 SDK API can work with Lync2010 clients? And if yes, under what conditions?

Trackbacks/Pingbacks

  1. … and I thought I saw a 2 » Blog Archive » Lync SDK Version Mismatch - […] Reference: http://thoughtstuff.co.uk/2012/07/using-lync-2010-applications-with-lync-2013-and-lync-2013-applicat… […]

Post a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This site uses cookies to help make this website better. By continuing to use this site we’ll assume you’re OK with that (implied consent).