Pages Menu
TwitterRssFacebook

Posted by on Mar 21, 2012 in Skype for Business® (Lync®)

UCMA App Error: Microsoft.Lync.Model.LyncClientException: Generic COM Exception. Code is 0x80EF01F8

UCMA App Error: Microsoft.Lync.Model.LyncClientException: Generic COM Exception. Code is 0x80EF01F8

I just spent a bit of time debugging this cryptic error message. I couldn’t find anything online about it, hence this post.

The Lync Trusted Application and Trusted Application Endpoints have been created, the UCMA application starts fine, and establishes endpoints fine. However, when you send a message to it, you get this:

Microsoft.Lync.Model.LyncClientException: Generic COM Exception. Code is 0x80EF01F8

at Microsoft.Lync.Model.Internal.CBWBase.BlockUntilDone()
at Microsoft.Lync.Model.Conversation.InstantMessageModality.EndSendMessage_private(String& message, NamedPropertyList& formats, IList`1& participants, IAsyncResult asyncResult)
at Microsoft.Lync.Model.Conversation.InstantMessageModality.EndSendMessage(IAsyncResult asyncResult)

I’ve no idea whether there are multiple possible causes for this error, but, for me, the problem was solved by turning off the firewall on the Application Server (the server hosting the UCMA application).

Now that we know the problem, we can turn the firewall back on – keeping it off probably isn’t the best idea 😉 But at least now we know what to do:

We need to add an Incoming Rule to allow TCP traffic on the port the application is using.

Don’t know which port that is? Use the Lync Server Management Shell and command Get-CSTrustedApplication. Find your application, and the port number will be listed there.

Disclaimer: This worked for me. It might not for you(!) Due to the nature of the error message, it’s impossible to know if this is the only reason for the error. But, if you find something else which causes this, please mention it in comments.

Edit: in fact, I found that you can also get this error if you try and send a message to an application endpoint tied to a UCMA service, and the service isn’t running. So, that’s work checking as well!

Written by Tom Morgan

Tom is a Microsoft Teams Platform developer and Microsoft MVP who has been blogging for over a decade. Find out more.
Buy the book: Building and Developing Apps & Bots for Microsoft Teams. Now available to purchase online with free updates.

1 Comment

  1. I’m facing a similar problem when trying to grab the LyncClient instance [LyncClient.GetClient()]. When I try executing this, it throws a LyncClientException saying the message “Generic COM Exception. Code is 0x800702E4”. Do you know where it may be wrong? I’ve also checked for new dlls, and so far no solve.

Trackbacks/Pingbacks

  1. Google… how? | Thought Stuff - [...] share this bit of data with you, because it makes my head hurt.I wrote a post this morning –…

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.