I was working with File Download stuff in ASP.NET and started getting the following exception:
PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.
I noticed the issue was during stting the response header in this way :
response.Headers["Accept-Ranges"] = "bytes";
Solution:After modifying the above line to this:
response.AddHeader("Accept-Ranges" , "bytes");
my issue got fixed.