locked
CRM 2011 - Attach emails to Opportunity error - WRPC Token RRS feed

  • Question

  • G'day All,

    I have a strange issue with emails being attached to opportunities, it randomly fails but if you try to track it again, you get a message stating the email is already tracked. I have walked through the process and cannot find a direct cause except in the events log I get these exception errors.

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 19/01/2015 2:53:52 PM 
    Event time (UTC): 19/01/2015 6:53:52 AM 
    Event ID: 155d395f8b9045749127998d0162fa5e 
    Event sequence: 95 
    Event occurrence: 1 
    Event detail code: 0 
    Application information: 
        Application domain: /LM/W3SVC/2/ROOT-1-130661239309108800 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ 
        Machine name: CRM 
    Process information: 
        Process ID: 5676 
        Process name: w3wp.exe 
        Account name: NT AUTHORITY\NETWORK SERVICE 
    Exception information: 
        Exception type: CrmException 
        Exception message: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=bzg84I9iEeSoFwBQVpdiEDNfDUlIBN6D+78h0hVOIjjQl2PE3swtHhBYMw1dAFkD
       at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState()
       at Microsoft.Crm.Application.Pages.Activities.ActivityAttachmentDownload.ConfigurePage()
       at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information: 
        Request URL: http://crm:5555/P/Activities/Attachment/download.aspx?AttachmentType=1001&AttachmentId=873d9f1c-b74e-e411-93af-005056976210 
        Request path: /P/Activities/Attachment/download.aspx 
        User host address: 192.168.0.115 
        User: DO\Reception3 
        Is authenticated: True 
        Authentication Type: Negotiate 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Thread information: 
        Thread ID: 24 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState()
       at Microsoft.Crm.Application.Pages.Activities.ActivityAttachmentDownload.ConfigurePage()
       at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    In most of the articles it suggests to enter a registry key to disable the token checking, but I am not sure what the knock on effect of this will be if I disable the token check. But more importantly, I am concerned about what may be causing this in the first place.

    The emails that are being attached, can be quite large, as a lot of them are plans (2-5mgs) but in the grand scheme of things they are not that big at all.

    Any help, pointers, thoughts, will be gratefully accepted.



    cheers





    Jamie

    Jamie Wilbraham Lead CRM / Systems Consultant Metisc Computer Services 5/800 Albany Highway Victoria Park WA Tel: (08) 9355 5880 Fax: (08) 9291 7893 www.metisc.com.au info@metisc.com.au

    Monday, January 19, 2015 7:09 AM