CRM 2011 Rollup 2 javascript error.

已答复 CRM 2011 Rollup 2 javascript error.

  • Tuesday, June 07, 2011 5:32 PM
     
      Has Code

    I am working on upgrading our CRM 4 system to CRM2011. Things were mostly working beside the plugin issue which I asked here. Today I did a manual upgrade to CRM2011 Rollup 2 and now most of my pages have this error

     

     <ScriptErrorDetails>
     <Message>Object doesn't support property or method 'get_$C0'</Message>
     <Line>0</Line>
     <URL>/main.aspx</URL>
     <PageURL>/main.aspx</PageURL>
     <Function>(eventCode,parameters)</Function>
     <CallStack>
      <Function>(eventCode,parameters)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>($p0,$p1,$p2,$p3,$p4)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>(eventCode,parameters)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>($p0,$p1,$p2,$p3,$p4)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>(eventCode,parameters)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>($p0,$p1,$p2,$p3,$p4)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>(eventCode,parameters)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>($p0,$p1,$p2,$p3,$p4)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>(eventCode,parameters)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
      <Function>($p0,$p1,$p2,$p3,$p4)</Function>
      <Function>(eventCode,parameters,sourceComponent)</Function>
     </CallStack>
     </ScriptErrorDetails>
    

     

    Which I considered as a good thing because the java script problem might have been there to begin with. But now the new version is able to display to us.

    My question is that if I want to modify the offending js files, where can I get them? Customization button in the page was grayed out so I can't get it from the browser.

    Thanks in advance.

     


All Replies

  • Tuesday, June 07, 2011 6:06 PM
    Moderator
     
     Answered

    This is strange.  I would use the technique laid out here that works for both 4.0 and 2011 and see if it helps narrow down what is going on.

    This will allow you to attach a visual studio debugger to the jscript when you recreate the error.

    http://mileyja.blogspot.com/2011/05/debugging-jscript-in-microsoft-dynamics.html


    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
  • Tuesday, June 07, 2011 9:28 PM
     
     Answered Has Code

    Now I am getting different error messages:

     

    <CrmScriptErrorReport>
     <ReportVersion>1.0</ReportVersion>
     <ScriptErrorDetails>
      <Message>Error initializing component with element id='picklistFilterPopupcrmGridactivitypointeractivitytypecode' and with type='Mscrm.PicklistFilterPopup': Unable to get value of the property 'startsWith': object is null or undefined</Message>
      <Line>0</Line>
      <URL>/_root/homepage.aspx?etc=4200&pagemode=iframe&sitemappath=Workplace%7cMyWork%7cnav_activities</URL>
      <PageURL>/_root/homepage.aspx?etc=4200&pagemode=iframe&sitemappath=Workplace%7cMyWork%7cnav_activities</PageURL>
      <Function>anonymous(type,properties,events,references,element){try{!Mscrm.PageManager.$12_2&&$create(type,properties,events,references,element)}catch($v_0){var$v_1=String.format("Errorinitializingcomponentwithelementid='{0}'andwithtype='{1}':{2}",!element?"null":el</Function>
      <CallStack>
      <Function>anonymous(type,properties,events,references,element){try{!Mscrm.PageManager.$12_2&&$create(type,properties,events,references,element)}catch($v_0){var$v_1=String.format("Errorinitializingcomponentwithelementid='{0}'andwithtype='{1}':{2}",!element?"null":element.id,!type?"null":type.getName(),$v_0.message);catchError($v_1,window.location.href,0,true)}}</Function>
      <Function>crmApplicationInitHandler()</Function>
      <Function>anonymous(c,d){for(varb=0,e=a.length;b<e;b++)a[b](c,d)}</Function>
      <Function>anonymous(){vara=this.get_events().getHandler("init");if(a){this.beginCreateComponents();a(this,Sys.EventArgs.Empty);this.endCreateComponents()}}</Function>
      <Function>anonymous(){if(!this.get_isInitialized()&&!this._disposing){Sys._Application.callBaseMethod(this,"initialize");this._raiseInit();if(this.get_stateString){if(Sys.WebForms&&Sys.WebForms.PageRequestManager){this._beginRequestHandler=Function.createDelegate(this,this._onPageRequestManagerBeginRequest);Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(this._beginRequestHandler);this._endRequestHandler=Function.createDelegate(this,this._onPageRequestManagerEndRequest);Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._endRequestHandler)}vara=this.get_stateString();if(a!==this._currentEntry)this._navigate(a);elsethis._ensureHistory()}this.raiseLoad()}}</Function>
      <Function>b()</Function>
      <Function>anonymous(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",a);b()}}</Function>
      </CallStack>
     </ScriptErrorDetails>
     <ClientInformation>
      <BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; MS-RTC LM 8; InfoPath.3; .NET4.0E)</BrowserUserAgent>
      <BrowserLanguage>en-us</BrowserLanguage>
      <SystemLanguage>en-us</SystemLanguage>
      <UserLanguage>en-us</UserLanguage>
      <ScreenResolution>1280x1024</ScreenResolution>
      <ClientName>Web</ClientName>
      <ClientTime>2011-06-07T14:24:22</ClientTime>
     </ClientInformation>
     <ServerInformation>
      <OrgLanguage>1033</OrgLanguage>
      <OrgCulture>1033</OrgCulture>
      <UserLanguage>1033</UserLanguage>
      <UserCulture>1033</UserCulture>
      <OrgID>{622EB2E7-16C0-DE11-830B-0050569E50E9}</OrgID>
      <UserID>{8018E605-17C0-DE11-830B-0050569E50E9}</UserID>
      <CRMVersion>5.0.9688.1157</CRMVersion>
     </ServerInformation>
    </CrmScriptErrorReport>
    I didn't really work with CRM 4 before, but got the role of upgrading crm4 to 2011. So, I am still learning while trying to get things to work.

  • Wednesday, June 08, 2011 12:57 AM
    Moderator
     
     
    So did the did the debugging stop on anything and show you anything?
    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
  • Wednesday, June 08, 2011 1:17 AM
     
     Answered
    So did the did the debugging stop on anything and show you anything?
    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!

    I was having problem making my modification taking effect. But after I figure out that, I ran into another issue, which is posted by david at http://social.microsoft.com/Forums/en-US/crm/thread/1e4cf2f5-0e1c-49c7-8923-3227f1f0311d/#dc9fcf4e-a307-4fc6-8885-0744cb152303

     

    So, my added debugger; never had a chance to take off before the browser got busted.


  • Wednesday, June 08, 2011 1:19 AM
    Moderator
     
     
  • Wednesday, June 08, 2011 9:31 AM
     
     

    Hi,

    I am getting the same error too. Could you find any solution??

    Thanks

  • Friday, June 08, 2012 2:59 PM
    Moderator
     
     
  • Friday, June 08, 2012 3:16 PM
     
     
    Try a repair of CRM using Programs in the control panel

    Regards Faisal