Click here to Skip to main content
15,896,413 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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.
Posted
Comments
Afzaal Ahmad Zeeshan 16-Apr-15 4:12am    
That is because this old function is deprecated and you are required to use the new function. Are you of that psychology who believe Change is bad?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900