MVC 4 Area Routing is not working

后端 未结 6 992
误落风尘
误落风尘 2021-02-14 07:39

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:27

    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.

提交回复
热议问题