DefaultInlineConstraintResolver Error in WebAPI 2

后端 未结 6 1573
春和景丽
春和景丽 2020-12-23 13:10

I\'m using Web API 2 and I\'m getting the following error when I send a POST to my API method using IIS 7.5 on my local box.

The inline constraint resolver o         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-23 13:27

    I got this error when Type as declared as string. When I changed that to int it started working

    [HttpGet][Route("testClass/master/{Type:string}")]
    

提交回复
热议问题