c# - WebApi 2.0 - ApiControllers in another assembly fail to map if runAllManagedModulesForAllRequests="false" -
i have webapi2 application implements few apicontrollers.
the same application references assembly implements few more.
all controllers utilize attribute routing, so:
[routeprefix("sample1.endpoint")] public class samplecontroller : apicontroller { [route("")] [httpget] public httpresponsemessage webapitest() if define runallmanagedmodulesforallrequests="true" @ web.config, application works flawlessly - want rid of catch-all situation.
if instead set runallmanagedmodulesforallrequests "false", local apicontrollers mapped.
what (probably obvious) part missing?
Comments
Post a Comment