.net MVC 访问404

MVC 项目访问总是404

有几种情况:

1 地址打错了。

2 controller/action  但是action方法含有[ActionName("Index")] 重命名了。

3 这个最要命:

我把controller创建错地方了。然后剪切到controllers文件夹,要修改命名空间

猜你喜欢

转载自blog.csdn.net/hanjun0612/article/details/80497869