Error on startup of AgentDesktop.exe

Jun 7, 2010 at 12:21 PM

Hi

I'm getting an error on startup of AgentDesktop.exe. I have followed all the installation guide steps and the customizations on CRM imported successfully, however the  AgentDesktop.exe didn't load normally .

can any one help ?

Jun 7, 2010 at 12:33 PM

Whats the exception logged ?  

Jun 7, 2010 at 1:14 PM

First the application couldn't write any logging however there is two errors raised:

1- Unable to load DLL 'windowsaccessbridge.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 

2-Second one that makes the application to close:
Message : Object reference not set to an instance of an object.
Source : Microsoft.Uii.Desktop.UI.Core
Atack Trace:
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.AddSession(CustomerEntity customer, Guid callID)
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.StartHostedApplications()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.LoadNonHostedApplications(IApplicationService applicationService)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.GetNonHostedApps()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.Login()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.GetOptions()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.LoadDesktop()
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.StartDesktopLoad()
   at Microsoft.Uii.Desktop.UI.Wpf.WpfDesktop.WpfRootDesktopForm_Loaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at Microsoft.Practices.CompositeUI.Windows.WindowShellApplication`2.Start()
   at Microsoft.Practices.CompositeUI.CabApplication`1.Run()
   at Microsoft.Uii.Csr.AifWpfShellBase`1.StartApplication()
   at Microsoft.Crm.Accelerator.Cca.WpfDesktop.Program.Main() in C:\Program Files\Microsoft Uii\CCA\Source Code\AgentDesktop\Program.cs:line 74

 

Thanks for your interest

Jun 21, 2010 at 3:30 AM

Hi I have the same problem, has anyone found a solution to this?

Jun 21, 2010 at 10:24 AM

You can ignore the first error.
If you want to remove it ( and your not going to use Java ) just comment out the Windows Access Bride Load method in the program.cs file.

The second is where your issue is, the error Implies something is missing.
Please run this from Visual Studio and Look at the output screen in VS. You should get more information there.   There are also a few diagnostic switches you can turn on to log it to files, however VS is the faster for this sort of error.

Also can you verify that, from CRM Settings, when you click on the UII Settings; the UII Settings window loads correctly?

MattB.

Nov 9, 2010 at 2:39 PM

Hi,

I was able to install cca 2 different computers.

For the third one this error occured.

First of all there is a logging error.

Second one is:

 at Microsoft.Uii.Desktop.UI.Core.DesktopBase.AddSession(CustomerEntity customer, Guid callID)
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.StartHostedApplications()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.LoadNonHostedApplications(IApplicationService applicationService)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.GetNonHostedApps()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.Login()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.GetOptions()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.LoadDesktop()
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.StartDesktopLoad()
   at Microsoft.Uii.Desktop.UI.Wpf.WpfDesktop.WpfRootDesktopForm_Loaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at Microsoft.Practices.CompositeUI.Windows.WindowShellApplication`2.Start()
   at Microsoft.Practices.CompositeUI.CabApplication`1.Run()
   at Microsoft.Uii.Csr.AifWpfShellBase`1.StartApplication()
   at Microsoft.Crm.Accelerator.Cca.WpfDesktop.Program.Main() in C:\Program Files\Microsoft Uii\CCA\Source Code\AgentDesktop\Program.cs:line 74

Can anybody help? it is a little bit urgent

Nov 10, 2010 at 12:27 PM

What's your internet explorer version if was 7 try to install 8?

I have the same issue in some machines when install ie 8 work.

Nov 10, 2010 at 2:03 PM

IE version is 8. The issue i have mentioned above solved (don' t sure how) but have another problem. I' m facing this problem both on the server and client computer. You can find some part of error log below.

I checked WPFCAB application steps and looks like nothing is missing.

Do you have any idea, what can cause this?

Thanks.

10.11.2010 12:51:33: CCA: DESKTOP_ERR_FATAL_ERROR:A possibly fatal error has occurred.  The application may now exit.Microsoft.Practices.CompositeUI.Services.ServiceMissingException: Service Microsoft.Uii.Csr.ApplicationHostWorkItem is not available in the current context.   at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.Get(Type serviceType, Boolean ensureExists)   at Microsoft.Practices.CompositeUI.ServiceDependencyAttribute.ServiceDependencyParameter.GetValue(IBuilderContext context)   at Microsoft.Practices.ObjectBuilder.PropertySetterInfo.GetValue(IBuilderContext context, Type type, String id, PropertyInfo propInfo)   at Microsoft.Practices.ObjectBuilder.PropertySetterStrategy.InjectProperties(IBuilderContext context, Object obj, String id)   at Microsoft.Practices.ObjectBuilder.PropertySetterStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.CreationStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)

......

Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.SingletonStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)   at Microsoft.Practices.ObjectBuilder.TypeMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)   at Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)   at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)   at Microsoft.Practices.CompositeUI.WorkItem.BuildUp()   at Microsoft.Practices.CompositeUI.CabApplication`1.Run()   at Microsoft.Uii.Csr.AifWpfShellBase`1.StartApplication()   at Microsoft.Crm.Accelerator.Cca.WpfDesktop.Program.Main() in C:\Source Code\AgentDesktop\Program.cs:line 72 

Nov 12, 2010 at 1:46 PM

Check this thread out...
http://crmcca.codeplex.com/Thread/View.aspx?ThreadId=225059

And turn on "verbose" tracing in the config file,  when it excepts you should see a lot more information in the Log File.

Please post the exception information it logs from there.

- Mattb.