404 - A public action method X was not found on controller Y (ActionInvoker.InvokeAction returns false)

前端 未结 2 2015
故里飘歌
故里飘歌 2021-02-05 00:45

This is NOT a duplicate question, and the problem is driving me crazy. I am getting the typical error \"A public action method X was not found on controller Y\" which returns a

2条回答
  •  迷失自我
    2021-02-05 01:24

    Watch out: in my case I was getting a 500 error when trying to reach a new action method.

    IIS 8.5 Detailed Error - 500.0 - A public action method 'getwells' was not found on controller 'ITVizion.VizionLogs.Widgets.Controllers.MapController'.

    I added the action method to the Controller and was "deploying" the updated app to IIS.

    The problem: I was deploying the Debug configuration in Visual Studio and had unchecked that specific project from building. That was to speed up building in Visual Studio since there are lots of project in the solution. :D Going to the IIS app folder I saw that the project's DLL was outdated.

    So make sure you check the project to Build. :) This will obviously take care of deploying the new codez to IIS.

    enter image description here

提交回复
热议问题