Multiple Controllers with one Name in ASP.NET MVC 2

后端 未结 6 1056
情深已故
情深已故 2021-01-11 14:40

I receive the following error when trying to run my ASP.NET MVC application:

The request for \'Account\' has found the following matching controllers:

6条回答
  •  醉酒成梦
    2021-01-11 15:37

    If you refactor your project and change the default Namespace and Assembly from "MVCApplication1" to "uqs", you may end up with 2 assemblies in your bin directory (the new one and the old one). You can get this error because the AccountController is in both assemblies.

    Clean your bin directory of the old MVCApplication1.dll.

提交回复
热议问题