I’m just working on an existing C# Mvc3/4 application and am getting an error when trying to call a method.
The call is
@url.Action("Bob", "BobController")
The controller is:
[Authorized]
class BobController ... {
public ActionResult Bob() {
...
}
}
The error I get is ‘A public action method ‘Bob’ was not found on controller MyController’
What is happening, the constructor is being fired in the class so I can see the call being made and arriving at the controller, then it jumpts to the Application_Error in global.asx.
Just wondering, if there is a way of determining what it is looking for (missing permission, incorrect route etc.) so I can see why it is failing?
Regards