5

Closed

PlatformUnsuportedException on IIS 7

description

With latest 2.1 release we get the following exception on IIS 7:

[PlatformNotSupportedException]: This operation requires IIS version 7.5 or higher running in integrated pipeline mode. at System.Web.HttpResponse.get_ClientDisconnectedToken()

This is a Web API issue as this api is only supported on IIS 7.5 and only in integrated mode, otherwise PlatformNotSupportedException will be thrown. The current IIS version can be checked via http://msdn.microsoft.com/en-us/library/system.web.httpruntime.iisversion(v=vs.110).aspx at runtime, and the pipeline mode can be checked via http://msdn.microsoft.com/en-us/library/system.web.httpruntime.usingintegratedpipeline(v=vs.110).aspx at runtime.
Closed Feb 3 at 8:21 PM by yishaigalatzer

comments

twoflower wrote Jan 23 at 4:45 PM

I already reported this here along with a suggested fix.

twoflower wrote Jan 23 at 4:47 PM

I realize that in my fix the check for the pipeline mode is missing.

yishaigalatzer wrote Feb 3 at 8:21 PM

This is fixed, and available on myget already to try out, We are planning to release as a 5.1.1 release.