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

后端 未结 13 729
春和景丽
春和景丽 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:33

    From the IIS logs our problem was caused by Googlebot attempting POST and a GET for a POST only controller action.

    For this case I recommend handling the 404 like Dmitriy suggestion.

提交回复
热议问题