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

前端 未结 20 2500
一个人的身影
一个人的身影 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:21

    Not sure if this hits the solution from a different angle to the accepted answer, but I found that one of my controllers in the Areas section was sitting in the wrong namespace. Correcting the namespace to:

    Areas.{AreaName}.Controller
    

    fixed the issue for me.

    I suspect the key factor was to have all the controllers within a given area share the same namespace.

提交回复
热议问题