We are running WebForms and MVC apps side by side (in one project) and have RadCompression enablePostbackCompression enabled. This causes a problem in our MVC app, whenever a request returns 500 status code.
The easiest way to reproduce this is to enable postback compression, decorate an action with a HandleError attribute (which returns 500 in case of an unhandled exception), turn custom errors on and throw an exception inside the action. The expected result would be to be redirected to the error page. Instead, we get an encoding error because RadCompression module appends "gzip" to Content-encoding header without checking whether it was already appended, resulting in "Content-encoding: gzip,gzip".
What are my options besides turning off postback compression altogether? Ideally, I'd want to use RadCompressionSettingsAttribute to disable compression for a given action or controller but that hasn't worked. Any thoughts?
The easiest way to reproduce this is to enable postback compression, decorate an action with a HandleError attribute (which returns 500 in case of an unhandled exception), turn custom errors on and throw an exception inside the action. The expected result would be to be redirected to the error page. Instead, we get an encoding error because RadCompression module appends "gzip" to Content-encoding header without checking whether it was already appended, resulting in "Content-encoding: gzip,gzip".
What are my options besides turning off postback compression altogether? Ideally, I'd want to use RadCompressionSettingsAttribute to disable compression for a given action or controller but that hasn't worked. Any thoughts?