Hello All,

I am getting below error in CRM application:

/activities/attachment/download.aspx(System.Web.HttpUnhandledException)

INVALID_WRPC_TOKEN

[CrmException: INVALID_WRPC_TOKEN]
at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState()
at Microsoft.Crm.Common.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)

[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

So, As per analysis issue is coming because of not passing required query string parameters in URL.

Expected URL:
https://crm.abc.com/Org/Activities/Attachment/download.aspx?AttachmentType=1001&AttachmentId=<GUID>&CRMWRPCToken=<token>

FIX:

rajeevpentyala.com/.../invalid_wrpc_token

Can anyone suggest me how can i fix it and what will be impact if disable the CRM token checks via Registry change.

Is there any other way??