MAgE (Migration Agent for Exchange) shows the following error if the service account it uses is not allowed to run processes by ID:
Error Quest.MigrationManager.Exchange.Basis.MapiLogonException: Mapi logon failed. | at Quest.MigrationManager.Exchange.Basis.MAPISessionCreator.CreateSessionAndLogon(String serverName, String mailboxName, String userName, String domainName, String password, CONNECT_FLAGS flags, IMapiStore& primaryStore)
at Quest.MigrationManager.Exchange.Agent.Jobs.Realm.get_MapiSession()
at Quest.MigrationManager.Exchange.Agent.Jobs.Realm.get_Connector()
at Quest.MigrationManager.Exchange.Agent.Jobs.DisBaseJob.InitFilter()
at Quest.MigrationManager.Exchange.Agent.Jobs.DisBaseJob.RunJob()
[inner] System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'System.IDisposable'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{805D7A98-D4AF-3F0F-967F-E5CF45312D2C}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA). |
Server stack trace:
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at System.IDisposable.Dispose()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.EnterpriseServices.ServicedComponent.Dispose()
at Quest.MigrationManager.Exchange.Basis.MAPISessionCreator.CreateSessionAndLogon(String serverName, String mailboxName, String userName, String domainName, String password, CONNECT_FLAGS flags, IMapiStore& primaryStore)
Due to 'Unable to cast COM object..' portion of the error it can be seen that the agent is not just unable to log on to the source mailbox, but rather cannot start any process.