Attached repro code.
Steps to repro:
1. Create a custom controller configuration attribute
2. Put the attribute on web api controller
3. Create a self or web host application for web api
4. Enable tracing on the service
5. Run the service
6. Send a client request to reach the controller's action to make it initializing
Possible fix to this bug:
1. Creating an protected copy only constructor in HttpControllerDescriptor which doesn't do any initialization
2. Change HttpControllerDescriptorTracer's constructor to use copy only constructor
Comments: fixed on https://aspnetwebstack.codeplex.com/SourceControl/changeset/c8c13fd2a2f8fd2bc24df26504c0bdb209dc8d0d
Steps to repro:
1. Create a custom controller configuration attribute
2. Put the attribute on web api controller
3. Create a self or web host application for web api
4. Enable tracing on the service
5. Run the service
6. Send a client request to reach the controller's action to make it initializing
Possible fix to this bug:
1. Creating an protected copy only constructor in HttpControllerDescriptor which doesn't do any initialization
2. Change HttpControllerDescriptorTracer's constructor to use copy only constructor
Comments: fixed on https://aspnetwebstack.codeplex.com/SourceControl/changeset/c8c13fd2a2f8fd2bc24df26504c0bdb209dc8d0d