locked
Handle cookie errors RRS feed

Answers

  • User475983607 posted

    Add proper error handling to your code by adding a  try...catch and specifically filter for an System.Web.Mvc.HttpAntiForgeryException.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 27, 2016 5:15 PM
  • User-166373564 posted

    Hi,

    For 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.

    Regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 29, 2016 9:21 AM

All replies

  • User475983607 posted

    Add proper error handling to your code by adding a  try...catch and specifically filter for an System.Web.Mvc.HttpAntiForgeryException.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 27, 2016 5:15 PM
  • User-166373564 posted

    Hi,

    For 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.

    Regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 29, 2016 9:21 AM