IIS - "This operation requires IIS integrated pipeline mode" error when using AntiForgeryToken

Change the IIS Managed Pipeline Mode to Integrated.