No type was found that matches the controller named 'User'

后端 未结 14 2464
孤城傲影
孤城傲影 2020-12-23 19:49

I\'m trying to navigate to a page which its URL is in the following format: localhost:xxxxx/User/{id}/VerifyEmail?secretKey=xxxxxxxxxxxxxxx

I\'ve added a new route i

14条回答
  •  春和景丽
    2020-12-23 20:15

    In my case I was seeing this because I had two controllers with the same name:

    One for handling Customer orders called CustomersController and the other for getting events also called CustomersController

    I had missed the duplication, I renamed the events one to CustomerEventsController and it worked perfectly

提交回复
热议问题