Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

INVALID_WRPC_TOKEN error getting in crm

Posted on by 1,558

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??

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans