Intermittent asp.net mvc exception: “A public action method ABC could not be found on controller XYZ.”

后端 未结 13 728
春和景丽
春和景丽 2020-12-02 04:57

I\'m getting an intermittent exception saying that asp.net mvc can’t find the action method. Here’s the exception:

A public action method \'Fill\' cou

13条回答
  •  时光说笑
    2020-12-02 05:20

    Shouldn't it be

    routes.MapRoute(
            "SchoonForm",
            "Form/Fill/{subscriberId}",
            new { controller = "Chris", action = "Fill" },
    

    Also, what do your filters do? Can't they hide action, like ActionMethodSelectorAttribute?

提交回复
热议问题