Agent desktop [CCA] - Troubles in Win 7 machines

Nov 20, 2013 at 2:56 PM
Edited Nov 20, 2013 at 5:13 PM
Hello Experts,

We have been recently running through lot of issues where in Agent desktop is crashing at some instances on Windows 7 machines. We have no issues when running on Win XP. We are facing Two major issues:
  1. A Thick client application is loading outside Agentdesktop only on Windows 7 machines. It is on production from almost 3 years and works like a charm on Windows XP machines. But when tried on Win 7 machines the thick client application opens up outside the Agentdesktop and not in main Panel.
  2. We have a hosted control where we have created a CRM dashboard that displays User OC[Office Communicator] status [busy or Away or Available]. If Microsoft OC is running then the Dashboard crashes but in case we close the Microsoft OC then it runs fine. Following are the 3 errors recorded in event viewer in the sequence mentioned below..
Application: AgentDesktop.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Window.ShowHelper(System.Object)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at Microsoft.Practices.CompositeUI.Windows.WindowShellApplication2[[System.__Canon, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start()
at Microsoft.Practices.CompositeUI.CabApplication
1[[System.__Canon, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Run()

at VM.Crm.Accelerator.Cca.AgentDesktop.Program.Main()

Faulting application name: AgentDesktop.exe, version:, time stamp: 0x52865210
Faulting module name: unknown, version:, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0f809370
Faulting process id: 0x1074
Faulting application start time: 0x01cee50cc9519490
Faulting application path: C:\Program Files\XYZ\ABCD\AgentDesktop.exe
Faulting module path: unknown

Report Id: 12a01e00-5100-11e3-82fe-0023243ed9b3

Fault bucket 3997128679, type 5
Event Name: BEX
Response: Not available
Cab Id: 0

Problem signature:
P1: AgentDesktop.exe
P3: 52865210
P4: StackHash_0a9e
P6: 00000000
P7: 103235d0
P8: c0000005
P9: 00000008

Any help/guidance is deeply appreciated !!
Nov 20, 2013 at 3:03 PM

I strongly believe it is because of UAC in windows 7.

My first point of interest in such scenarios would be, Checking with a user who is an Admin in the machine And also, has to ensure that the app is running under admin privileges.

Nov 20, 2013 at 4:01 PM
Hi Srikanth,

No luck. Turned Off UAC. Still getting following errors:
  1. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
  2. Cannot Open teh Program because Office Communicator or Office Communications Server Attendant is already running on your Windows Account. Please close the running program and then try again.
Nov 21, 2013 at 8:34 AM
Hi Avaneesh,

Regarding Point 1 :
How you are hosting this 'Thick client application' (Hosted cotnrol or through CRM server) ? Is it Webapplication or Windows?

Considering it as a web application and hosted control the header name (Title bar) displays different name in XP and Win 7 so if we are hosting it via the hosted control and by finding out the application Title bar or class name, it "may" have different name for XP and Win 7 so you might need to make changes in code.
Also, if not as above try increasing the delay time (thread.sleep) so it might help to host inside. (thread.sleep can be added if it is windows application)

I will recommend step by step debuging that can put you on right track.

Regarding Point 2 :
Are you getting the same issue on multiiple win 7 PCs?

Try disabling the UAC off and login as admin to launch the application.
Also, try to install the application on say "D" drive.


Nov 21, 2013 at 9:11 AM
Hi Nitin,

As I mentioned earlier it is a Thick Client thus it is a Desktop Application. Point 2 does not work. I am an Local Admin on the machine and UAC is already Turned Off. It happens on all the Win 7 machines only. Works well on Win XP machines.