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!
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.