The controller for path was not found or does not implement IController

前端 未结 20 2367
一个人的身影
一个人的身影 2020-11-29 20:50

I have an MVC4 project with language selection:

  • en
  • nl
  • fr
  • de

1 main part with:

  • About
  • Common (fo
相关标签:
20条回答
  • 2020-11-29 21:39

    If appropriate to your design, you can make sure the access modifier on your controller class is 'public', not something that could limit access like 'internal' or 'private'.

    0 讨论(0)
  • 2020-11-29 21:40

    Embarrassingly, the problem in my case is that I haven't rebuilt the code after adding the controller.

    So maybe the first thing to check is that your controller was built and is present (and public) in the binaries. It might save you few minutes of debugging if you're like me.

    0 讨论(0)
提交回复
热议问题