Error: Action has more than one parameter bound from request body

前端 未结 6 1200
死守一世寂寞
死守一世寂寞 2021-01-11 14:15

I wrote a new method into my Controller of my ASP.Net MVC project and getting error below. I think InvalidOperationException coming from with Swagger. I marked

6条回答
  •  无人及你
    2021-01-11 14:18

    I got this error by inheriting from BaseController instead of ControllerBase. It was a class from another library that is completely unrelated and I misremembered the name. The exception was a red herring for me.

提交回复
热议问题