0

I have two web API projects running in the same visual studio solutions, one calls the other. The actions on their controllers are identical, i.e. their routes are identical. I would have thought they belong to two completely different APIs so this should be perfectly fine although I get a AmbiguousActionException: Multiple actions matched. The following actions matched route data and had all constraints satisfied: error.

Can someone shine some light on why this is happening? Is this is a quirk of running the solution in IIS express?

2
  • try to use this stackoverflow.com/questions/34306891/… Commented Jul 18, 2017 at 3:34
  • How are you setting up routes to the actions? By convention or with attributes? If you share an example of a controller would be easier to find your problem. Commented Jul 18, 2017 at 11:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.