I have a WebApi2 application that implements some ApiControllers .
This same application references an Assembly that implements some more.
All these controllers use Attribute Routing , as in the following example:
[RoutePrefix("sample1.endpoint")]
public class SampleController : ApiController
{
[Route("")]
[HttpGet]
public HttpResponseMessage WebApiTest()
If I define runAllManagedModulesForAllRequests="true"
in web.config
, the application works perfectly - but I want to turn off this attribute (which can be quite costly in production).
However, if I set the value from runAllManagedModulesForAllRequests
to false , only the local ApiControllers are correctly mapped; calls to others generate a 404
.
Which part, probably obvious, did I not implement?
(cross-post: link )