MVC 4 Area Routing is not working

后端 未结 6 1685
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 08:09

I created an empty MVC4 Application, all things are working fine, after that I add an Area to my Project Named \"Moderator\". My area routing code is like this:



        
6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-14 08:20

    Check the namespace of your controller.

    I had moved some code into an area and the namespace was still showing the old location.

    ReSharper has a very cool option to fix the namespaces of all files in the folder, project or solution! It is very handy to fix this.

提交回复
热议问题