0

I built a gadget that shows an on-call rotation for a team, and I am trying to integrate their communicator presence into that shedule. I am using the GetStatus method from the NameCtrl object to get user presence. It works fine in IE when I run it. The problem I am having is that the gadget has a runtime error whenever it hits the ActiveX object declaration. I know this because I commented it out and it runs fine. Any suggestions?

var communicatorPresence = getCommunicatorPresence(userName);


function getCommunicatorPresence(userName){
 var obj = new ActiveXObject("Name.NameCtrl.1")
 var presence = obj.GetStatus(userName,"")
 return presence;
}

I debugged the gadget in Visual Studio and put a breakpoint there, and the error was "Automation Server can't create object"

Mark Cheek
  • 265
  • 2
  • 10
  • 20
  • Have you tested on any other machines? Usually "Automation Server can't create object" means that either the control isn't properly registered or the current user/application isn't allowed to run it. – Andy E Feb 04 '11 at 09:45

1 Answers1

0

Depending on the machines UAC settings it might be that gadget does not have read/write access the registry.

3264
  • 371
  • 4
  • 18