Error after introducing authentication parameters when executing AgentDesktop.exe

Jun 27, 2011 at 2:31 PM

Hi,

 

I have compiled CCA, I have obtained AgentDesktop.exe and when executing it, I introduced valid authentication parameters (for the admin CRM acccount), but I obtained the following exceptions in CCA.log file:

6/27/2011 16:19:00: CCA: Agentdesktop starting...
6/27/2011 16:19:42: Cca: Unable to login - Please make sure your login details are correct and try again. Contact administrator if the problem persists.
System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: An error occurred when verifying security for the message.
   --- End of inner exception stack trace ---

Server stack trace:
   at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
   at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
   at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
   at Microsoft.Uii.AifServices.AuthenticationService.ValidateConnect()
   at Microsoft.Uii.AifServices.AuthenticationService.Connect(Uri organizationServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
   at Microsoft.Uii.AifServices.AuthenticationService.Connect(Uri organizationServiceUri, NetworkCredential networkCredential)
   at Microsoft.Crm.Accelerator.Cca.WpfDesktop.MainWindow..ctor() in C:\Program Files\Microsoft Uii\CCA\Source Code\AgentDesktop\MainWindow.xaml.cs:line 149

 

 

Can you help me please ?

 

Thank you very much in advance

Jun 28, 2011 at 7:20 PM

Hi Nizou,

Are you executing the agent desktop from another machine or from the server itself. Suppose if you are running from the another machine then pls ensure that clock time exactly matches with server time.

Let me know if this resolves your problem.

Thanks,

Senthil

Jun 29, 2011 at 8:19 AM

Hi senthijps,

 

Thank you very much for your response.

Yes, in fact it was an issue of clock time, and now I can login.

But currently I have another problem, in fact, after the login, I have obtained the following error messages:

- APPLICATION_HOST_ERR_ON_APP_INIT: Failed to initialize the hosted application Dialer.

- APPLICATION_HOST_ERR_IN_DO_ACTION: An error has occurred while performing action on the hosted application CRM.

- APPLICATION_HOST_ERR_IN_DO_ACTION: An error has occurred while performing action on the hosted application MyDashboard.

 

and in the CCA.log file, here after the obtained traces:

6/29/2011 10:11:17: CCA: Agentdesktop starting...
6/29/2011 10:12:21: CCA: Sessions.AddSession: Adding new session: ''
6/29/2011 10:12:21: CCA: Sessions.SetActiveSession: Switching to session: ''
6/29/2011 10:12:23: ApplicationHost: ApplicationHost: Loading app=My Notes type=ExternalHosted
6/29/2011 10:12:23: ApplicationHost: ApplicationHost: Loading app=Dialer type=ExternalHosted
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=Workflow Manager type=HostedControl
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=Current Session Viewer type=HostedControl
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=Customer Search type=HostedControl
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=Application Explorer type=HostedControl
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=Session Tabs type=HostedControl
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=Workflow Explorer type=HostedControl
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=CRM type=WebHosted
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=MyDashboard type=WebHosted
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=CRM Knowledge Base type=WebHosted
6/29/2011 10:12:24: ApplicationHost: ApplicationHost: Loading app=CtiCallControl type=HostedControl
6/29/2011 10:12:25: ApplicationHost: ApplicationHost: Loading app=CtiDesktopManager type=HostedControl
6/29/2011 10:12:25: ApplicationHost: ApplicationHost: Loading app=CtiRoot type=HostedControl
6/29/2011 10:12:28: Application Host: APPLICATION_HOST_ERR_ON_APP_INIT: Failed to initialize the hosted application Dialer.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Microsoft.Uii.Csr.ExternalControl.Start(Boolean pumpMessagesWhileWaiting)
   at Microsoft.Uii.Csr.ExternalApplication.Initialize()
   at Microsoft.Uii.Csr.ApplicationHost.InitializeApplications()
6/29/2011 10:12:29: CCA: WF/AutomationManager startup completed
6/29/2011 10:12:29: CRM: AutomationAdapter (session=e316a2ee-3731-4ea1-9262-2ba21649897b, app=CRM): Initialized
6/29/2011 10:12:29: MyDashboard: AutomationAdapter (session=e316a2ee-3731-4ea1-9262-2ba21649897b, app=MyDashboard): Initialized
6/29/2011 10:12:29: CRM: AutomationAdapter (session=e316a2ee-3731-4ea1-9262-2ba21649897b, app=CRM): ContextChange(): context=<UiiContext />
6/29/2011 10:12:29: MyDashboard: AutomationAdapter (session=e316a2ee-3731-4ea1-9262-2ba21649897b, app=MyDashboard): ContextChange(): context=<UiiContext />
6/29/2011 10:12:29: CRM: APPLICATION_HOST_ERR_IN_DO_ACTION: An error has occurred while performing action on the hosted application CRM.
System.Runtime.InteropServices.COMException (0x800704A6): Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6.
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at Microsoft.Uii.Csr.Browser.Web.WebBrowserExtended.StartBrowser(String urlString)
   at Microsoft.Uii.Csr.Browser.Web.WebBrowserExtended.PerformNavigate(String urlString, Boolean newWindow, String targetFrameName, Byte[] postData, String headers)
   at Microsoft.Uii.Csr.Browser.Web.WebBrowserExtended.Navigate(String urlString)
   at Microsoft.Uii.Csr.HostedWebApplication.DoDefaultAction()
6/29/2011 10:12:30: MyDashboard: APPLICATION_HOST_ERR_IN_DO_ACTION: An error has occurred while performing action on the hosted application MyDashboard.
System.Runtime.InteropServices.COMException (0x800704A6): Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6.
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at Microsoft.Uii.Csr.Browser.Web.WebBrowserExtended.StartBrowser(String urlString)
   at Microsoft.Uii.Csr.Browser.Web.WebBrowserExtended.PerformNavigate(String urlString, Boolean newWindow, String targetFrameName, Byte[] postData, String headers)
   at Microsoft.Uii.Csr.Browser.Web.WebBrowserExtended.Navigate(String urlString)
   at Microsoft.Uii.Csr.HostedWebApplication.DoDefaultAction()

 

Have you an idea about this ?

 

Best regards.