Last post Jul 29, 2016 09:21 AM by Angie xu - MSFT
Jul 27, 2016 04:44 PM|dow7|LINK
On a previous post ( https://forums.asp.net/t/2099905.aspx?The+required+anti+forgery+__RequestVerificationToken+is+not+present+ ) i faced
an error that came from cookies.
How to handle such errors? I want to show a message if they have a cookie problem.
Jul 27, 2016 05:15 PM|mgebhard|LINK
Add proper error handling to your code by adding a try...catch and specifically filter for an System.Web.Mvc.HttpAntiForgeryException.
Jul 29, 2016 09:21 AM|Angie xu - MSFT|LINK
ASP.NET Error Handling, you can handle default errors and HTTP errors by adding a
customErrors section to the Web.config file.
Or handle errors in at the code level in Try/Catch/Finally blocks within your code. Try to place these blocks so that the user can correct problems in the context in which they occur. Etc.