You do not reference the action method here:
action="Controllers/AccountController"
First you don’t need to specify Controllers/ , because the infrastructure will find a controller for you. In fact, the concept of a “folder” of controllers is unknown to the client / URL / etc. What you need to give is a “route” to a specific action method.
Since the MVC structure knows where the controllers are located, you only need to specify which controller and which method of action on this controller:
action="Account/LogOff"
David source share