I'm having an issue and I think it's with the WSFederationAuthenticationModule. I'm using WIF along with WebAPI and I'm trying to upload large files through the web api service. I am trying to use bufferless streams for the file upload so I followed the instructions here: 
The methodology for enabling bufferless streams on WebAPI is to inherit from WebHostBufferPolicySelector and return true for 'UseBufferedInputStream'.  And then add this at startup:
GlobalConfiguration.Configuration.Services.Replace(typeof(IHostBufferPolicySelector), new NoBufferPolicySelector());
This was working fine until I added WSFederationAuthenticationModule. When WSFederationAuthenticationModule is present in my web.config I get the exception at the bottom of this post.  Is WSFam already opening the input strea ...

Go to the complete details ...