RevokeObject not working

Visual Studio120
Hi,



I am trying to make the active object inactive resgistered

using RevokeActiveObject. I am getting following error.

"Moniker is already registered in running object table"



What I did is, I am registering the user logged in into my

application as a active object. But when in my application

user changes I need to make the currently active object as

in active and wants to register the new user as active.

But when I try to revoke the active object using

RevokeActiveObject and try to register using

RegisterActiveObject I m get above error and so I am not

able to register the new user as active



Is it that registeractiveobject works only once.



Please help me in this as i m badly stuc at this point.





Cheer

Dheeraj


-