Just trying to splice some code from one working project to another. The \"from\" project uses \"attribute routing\" where you embed [Route(…)] directives in the W
[Route(…)]
In my case, in web api project there were two using references:
using System.Web.Http; using System.Web.Mvc;
As soon as I removed System.Web.Mvc, the error was gone.
System.Web.Mvc