HelpPage emitting “An item with the same key has already been added”

Topics: ASP.NET Web API
Feb 13, 2014 at 11:24 AM
Developer
Feb 13, 2014 at 5:18 PM
Hi,
  1. Could you share how complex types OneRequest and ManyRequest look like? I ask this because in 2.1, a feature was added where we try to expand the Uri parameters for complex types which are bound from Uri...you can see this in the call stack...the call "TryExpandUriParameters"..
  2. Can you try the following:
    a. Comment out the "GetOne" action and let us know what path does HelpPage show for GetMany
    b. Comment out the "GetMany" action and let us know what path does HelpPage show for GetOne
Thanks,
Kiran
Developer
Feb 13, 2014 at 8:17 PM
I was able to reproduce your issue and this is a bug. Filed following bug now:
http://aspnetwebstack.codeplex.com/workitem/1683

Let us know if your scenario is similar otherwise you can add comments to that bug with more details as mentioned in my previous comment.

Thanks,
Kiran