U4-6522 - 'System.Web.Mvc.HtmlHelper.AntiForgeryToken(string)' is obsolete: 'This method is deprecated.

Created by Prateek Tayal 15 Apr 2015, 13:16:09 Updated by Shannon Deminick 26 Jun 2017, 07:11:21

I've a project build in ASP.Net 4.0 using Umbraco version 6.1.6. Here I'm using Contour, when I build my solution it is throwing "Error 5 'System.Web.Mvc.HtmlHelper.AntiForgeryToken(string)' is obsolete: 'This method is deprecated. Use the AntiForgeryToken() method instead. To specify custom data to be embedded within the token, use the static AntiForgeryConfig.AdditionalDataProvider property'." error in "ContourForm.cshtml" and compilation fails.

I've also upgraded the Contour version to 3.0.26, but it doesn't work.

I dig a lot into this and created a new empty test web application and configured Contour in that, then it worked.So, I copied all the files related to Contour from test to actual application, but again it failed.

Can any one help reason why this is not working with actual project.

1 Attachments

Comments

Shannon Deminick 26 Jun 2017, 07:11:22

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: