Hi @moondaddy ,
How do you configure Web API routing?
If it is convenient, can you provide the routing configuration of Web API?
I used Attribute Routing to test and did not reproduce your error.
public class ValuesController : ApiController
{ [Route("test/{test1}/{test2}/{test3}/{test4}/{test5}/{test6}/{test7}/{test8}/{test9}/{test10}/{test11}/{test12}/{test13}/{test14}/{test15}/{test16}/{test17}/{test18}/{test19}/{test20}/{test21}/{test22}/{test23}/{test24}/{test25}/{test26}/{test27}/{test28}/{test29}/{test30}")]
public string test(string test1, string test2, string test3, string test4, string test5, string test6, string test7, string test8, string test9, string test10, string test11, string test12, string test13, string test14, string test15, string test16, string test17, string test18, string test19 , string test20, string test21, string test23, string test24, string test25, string test26, string test27, string test28, string test29, string test30)
{
return "value";
}
}
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
YihuiSun