"Microsoft Dynamics CRM has encountered an error" occurring every time on CCA.

Mar 7, 2013 at 11:24 AM
Hi All,
I am getting:

"Microsoft Dynamics CRM has encountered an error,

Please tell Microsoft about this problem."

Send Error Report Don't Send

every time on CCA Agent Desktoop.
This popup is coming every time if I move away from "MyDashboard" tab and click anywhere. If I disable the "Mydashboard" hosted application, then it doesn't prompt any error.
For checking whether it is coming from "CCA Customer Service Representative Dashboard",
I created a new hosted application disabling "MyDashboard", which host dashboard other then "CCA Customer Service Representative Dashboard", then it starts giving same error.

Not getting this error while using CRM from Browser.

The error report contents are as below:

Microsoft Dynamics CRM Error Report Contents

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Invalid argument.</Message>
<ExceptionNumber>-2147024809</ExceptionNumber>
<Line>0</Line>
<URL>/main.aspx</URL>
<PageURL>/main.aspx</PageURL>
<Function>anonymous(eventCode,parameters){returnthis.$6_1.raiseEvent(eventCode,parameters,this)}</Function>
<CallStack>
<Function>anonymous(eventCode,parameters){returnthis.$6_1.raiseEvent(eventCode,parameters,this)}</Function>
<Function>anonymous(){var$v_0=this.$J_2(false);$v_0["sizeChanged"]=false;this.raiseEvent(Mscrm.ScriptEvents.WindowResize,$v_0)}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){switch(eventCode){caseMscrm.ScriptEvents.PageLoaded:this.$V_2();break;caseMscrm.ScriptEvents.RequestResize:this.$W_2();break;caseMscrm.ScriptEvents.GetWindowSize:returnthis.$U_2();default:break}returnnull}</Function>
<Function>anonymous($p0,$p1,$p2,$p3,$p4){var$v_0=[],$v_1="SE"+$p0.toString(),$v_2=this.$1G_1[$v_1];if(!IsNull($v_2))for(var$v_3=0;$v_3<$v_2.length;$v_3++){var$v_4=$v_2[$v_3].trim();if($p3&&($p2&&$v_4===$p2.get_id()))continue;var$v_5=$find($v_4);if($v_5||!Mscrm.PageManager.$18_2)try{var$v_6=$v_5.handleEvent($p0,$p1,$p2);$v_0[$v_0.length]=$v_6}catch($v_7){catchError($v_7.message,window.location.href,0,true,$p4,$v_7.number)}}return$v_0}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){var$v_0=false;try{if(window.location.href.toUpperCase().indexOf("OUTLOOK://")>=0)$v_0=true}catch($$e_1_0){return[]}if(IsNull(this.$N_1))this.$2u_1++;var$v_1=[],$v_2;try{switch(eventCode){case0:if(!IsNull(this.$v_1)){var$v_4=this.get_id()+"hastcemid=",$$dict_3_0=this.$v_1;for(var$$key_3_1in$$dict_3_0){var$v_5={key:$$key_3_1,value:$$dict_3_0[$$key_3_1]};$v_4+=$v_5.key+","}alert($v_4)}break}var$v_3=arguments.caller;$v_2=this.$3Y_1(eventCode,parameters,sourceComponent,true,$v_3);$v_1=$v_1.concat($v_2);$v_2=this.$3X_1(eventCode,parameters,sourceComponent,this.get_id(),false);$v_1=$v_1.concat($v_2);if(!$v_0&&!IsNull(this.$N_1)){$v_2=this.$N_1.bubbleEvent(eventCode,parameters,sourceComponent,this.$1N_1?this.$1Q_1:this.get_id(),$v_3);$v_1=$v_1.concat($v_2)}}catch($v_6){catchError($v_6.message,window.location.href,0,true,null,$v_6.number)}finally{if(IsNull(this.$N_1))this.$2u_1--}return$v_1}</Function>
<Function>anonymous(eventCode,parameters){returnthis.$6_1.raiseEvent(eventCode,parameters,this)}</Function>
<Function>anonymous(){var$v_0=this.$J_2(false);$v_0["sizeChanged"]=false;this.raiseEvent(Mscrm.ScriptEvents.WindowResize,$v_0)}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){switch(eventCode){caseMscrm.ScriptEvents.PageLoaded:this.$V_2();break;caseMscrm.ScriptEvents.RequestResize:this.$W_2();break;caseMscrm.ScriptEvents.GetWindowSize:returnthis.$U_2();default:break}returnnull}</Function>
<Function>anonymous($p0,$p1,$p2,$p3,$p4){var$v_0=[],$v_1="SE"+$p0.toString(),$v_2=this.$1G_1[$v_1];if(!IsNull($v_2))for(var$v_3=0;$v_3<$v_2.length;$v_3++){var$v_4=$v_2[$v_3].trim();if($p3&&($p2&&$v_4===$p2.get_id()))continue;var$v_5=$find($v_4);if($v_5||!Mscrm.PageManager.$18_2)try{var$v_6=$v_5.handleEvent($p0,$p1,$p2);$v_0[$v_0.length]=$v_6}catch($v_7){catchError($v_7.message,window.location.href,0,true,$p4,$v_7.number)}}return$v_0}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){var$v_0=false;try{if(window.location.href.toUpperCase().indexOf("OUTLOOK://")>=0)$v_0=true}catch($$e_1_0){return[]}if(IsNull(this.$N_1))this.$2u_1++;var$v_1=[],$v_2;try{switch(eventCode){case0:if(!IsNull(this.$v_1)){var$v_4=this.get_id()+"hastcemid=",$$dict_3_0=this.$v_1;for(var$$key_3_1in$$dict_3_0){var$v_5={key:$$key_3_1,value:$$dict_3_0[$$key_3_1]};$v_4+=$v_5.key+","}alert($v_4)}break}var$v_3=arguments.caller;$v_2=this.$3Y_1(eventCode,parameters,sourceComponent,true,$v_3);$v_1=$v_1.concat($v_2);$v_2=this.$3X_1(eventCode,parameters,sourceComponent,this.get_id(),false);$v_1=$v_1.concat($v_2);if(!$v_0&&!IsNull(this.$N_1)){$v_2=this.$N_1.bubbleEvent(eventCode,parameters,sourceComponent,this.$1N_1?this.$1Q_1:this.get_id(),$v_3);$v_1=$v_1.concat($v_2)}}catch($v_6){catchError($v_6.message,window.location.href,0,true,null,$v_6.number)}finally{if(IsNull(this.$N_1))this.$2u_1--}return$v_1}</Function>
<Function>anonymous(eventCode,parameters){returnthis.$6_1.raiseEvent(eventCode,parameters,this)}</Function>
<Function>anonymous(){var$v_0=this.$J_2(false);$v_0["sizeChanged"]=false;this.raiseEvent(Mscrm.ScriptEvents.WindowResize,$v_0)}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){switch(eventCode){caseMscrm.ScriptEvents.PageLoaded:this.$V_2();break;caseMscrm.ScriptEvents.RequestResize:this.$W_2();break;caseMscrm.ScriptEvents.GetWindowSize:returnthis.$U_2();default:break}returnnull}</Function>
<Function>anonymous($p0,$p1,$p2,$p3,$p4){var$v_0=[],$v_1="SE"+$p0.toString(),$v_2=this.$1G_1[$v_1];if(!IsNull($v_2))for(var$v_3=0;$v_3<$v_2.length;$v_3++){var$v_4=$v_2[$v_3].trim();if($p3&&($p2&&$v_4===$p2.get_id()))continue;var$v_5=$find($v_4);if($v_5||!Mscrm.PageManager.$18_2)try{var$v_6=$v_5.handleEvent($p0,$p1,$p2);$v_0[$v_0.length]=$v_6}catch($v_7){catchError($v_7.message,window.location.href,0,true,$p4,$v_7.number)}}return$v_0}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){var$v_0=false;try{if(window.location.href.toUpperCase().indexOf("OUTLOOK://")>=0)$v_0=true}catch($$e_1_0){return[]}if(IsNull(this.$N_1))this.$2u_1++;var$v_1=[],$v_2;try{switch(eventCode){case0:if(!IsNull(this.$v_1)){var$v_4=this.get_id()+"hastcemid=",$$dict_3_0=this.$v_1;for(var$$key_3_1in$$dict_3_0){var$v_5={key:$$key_3_1,value:$$dict_3_0[$$key_3_1]};$v_4+=$v_5.key+","}alert($v_4)}break}var$v_3=arguments.caller;$v_2=this.$3Y_1(eventCode,parameters,sourceComponent,true,$v_3);$v_1=$v_1.concat($v_2);$v_2=this.$3X_1(eventCode,parameters,sourceComponent,this.get_id(),false);$v_1=$v_1.concat($v_2);if(!$v_0&&!IsNull(this.$N_1)){$v_2=this.$N_1.bubbleEvent(eventCode,parameters,sourceComponent,this.$1N_1?this.$1Q_1:this.get_id(),$v_3);$v_1=$v_1.concat($v_2)}}catch($v_6){catchError($v_6.message,window.location.href,0,true,null,$v_6.number)}finally{if(IsNull(this.$N_1))this.$2u_1--}return$v_1}</Function>
<Function>anonymous(eventCode,parameters){returnthis.$6_1.raiseEvent(eventCode,parameters,this)}</Function>
<Function>anonymous(){var$v_0=this.$J_2(false);$v_0["sizeChanged"]=false;this.raiseEvent(Mscrm.ScriptEvents.WindowResize,$v_0)}</Function>
<Function>anonymous(eventCode,parameters,sourceComponent){switch(eventCode){caseMscrm.ScriptEvents.PageLoaded:this.$V_2();break;caseMscrm.ScriptEvents.RequestResize:this.$W_2();break;caseMscrm.ScriptEvents.GetWindowSize:returnthis.$U_2();default:break}returnnull}</Function>
<Function>anonymous($p0,$p1,$p2,$p3,$p4){var$v_0=[],$v_1="SE"+$p0.toString(),$v_2=this.$1G_1[$v_1];if(!IsNull($v_2))for(var$v_3=0;$v_3<$v_2.length;$v_3++){var$v_4=$v_2[$v_3].trim();if($p3&&($p2&&$v_4===$p2.get_id()))continue;var$v_5=$find($v_4);if($v_5||!Mscrm.PageManager.$18_2)try{var$v_6=$v_5.handleEvent($p0,$p1,$p2);$v_0[$v_0.length]=$v_6}catch($v_7){catchError($v_7.message,window.location.href,0,true,$p4,$v_7.number)}}return$v_0}</Function>

Please suggest what is causing this error?