COM Exception trying to get Presence from Office Communicator 2007 -
i building proof of concept on new box has been set windows server standard running iis 7.
the task need take logged in user , using office communicator 2007 check presence (and type of presence, online, offline, away, busy etc) of other users on exchange box on same machine.
the code seems pretty simple:
public string getstatus(string username) { try { if(this.currentcommunicator == null) this.currentcommunicator = new communicatorapi.messengerclass(); this.currentcommunicator.signin(0, "********", "*****"); if (currentcommunicator != null) { foreach (imessengercontact contact in currentcommunicator.mycontacts imessengercontacts) { if (!contact.isself) if (contact.signinname.contains(username)) { mistatus status = contact.status; return getstatusstring(status); } } } } catch (exception ex) { return ex.message; } return "unknown"; }
i logged office communicator 2007 correct u/p ocs instantiates, when code attempts loop round contacts:
foreach (imessengercontact contact in currentcommunicator.mycontacts imessengercontacts)
it throws error:
retrieving com class factory component clsid {8885370d-b33e-44b7-875d-28e403cf9270} failed due following error: 80070005.
chris crowe's blog seemed offer way forward after changing launch , activation permissions of 'office communicator messenger class' 'network service' had local launch activation rights - there no change in com error being thrown.
i've tried giving 'everyone' launch , activation permissions no change.
i've read through slew of ocs articles, can't seem solve problem. please before wrench out more clumps of hair.
how can write own c# program login in office communicator http://www.mombu.com/microsoft/live-communications-server-developer/t-how-i-can-write-my-own-c-program-for-login-in-office-comunicator-927275.html
how presence using office communicator sdk http://blogs.msdn.com/b/cmayo/archive/2009/09/21/how-to-get-presence-using-office-communicator-sdk.aspx
the office communicator automation api in 2 minutes http://blogs.msdn.com/b/cmayo/archive/2009/01/08/the-office-communicator-automation-api-in-2-min.aspx
using office communicator automation api http://blogs.msdn.com/b/midunn/archive/2008/03/09/using-the-communicator-automation-api.aspx
building custom contact list in office communicator http://msdn.microsoft.com/en-us/library/bb758709(v=office.12).aspx
how office communicator presence status work? how office communicator presence status work?
detecting user presence detecting user presence
configuration information owa 2010 form authentication http://www.stone-ware.com/cloud/support/3rdpartydetails.jsp?id=216
getting started using office communicator automation api http://msdn.microsoft.com/en-us/library/bb758820(office.12).aspx
office communicator 2007 development environments .net framework applications http://msdn.microsoft.com/en-us/library/bb787231(v=office.12).aspx
event id 56013 error code of 80070005 logged in event viewer when change password office communications server 2007 service accounts http://support.microsoft.com/kb/953112/en-us
fixing office com 80070005 errors changing 'launch , activation' permissions http://blog.crowe.co.nz/archive/2006/03/02/589.aspx
sign communicator (office communicator 2007) http://office.microsoft.com/en-gb/communicator-help/sign-in-to-communicator-ha010206469.aspx?redir=0
autologin ocs api example http://social.msdn.microsoft.com/forums/en-us/ucclientsdk/thread/bc0ba921-7cc5-4098-b137-ffb85d667e58
office 2007 - interface member invocations http://msdn.microsoft.com/en-us/library/bb758725(v=office.12).aspx
Comments
Post a Comment