If you can't use the type name because it is ambiguous use an alias like this after namespace imports:
using ClientError = agsXMPP.protocol.client.Error;