I'm finding that for one particular web application requests to WebResource.axd are returning a completely empty page. (Copying and pasting the link into a new browser window results in a completley empty response document)
IIS logs showing that the requests to WebResource.axd are successful (HTTP status code 200)
The application itself is complex and so it seems likely that it is something that the application is doing which is causing this, however I don't know what.
What additional debugging steps can I take to work out why these requests are failing, and where should I look for places where application specific behaviour might affect WebResource.axd in this way?
Things I have tried so far:
This is on a Windows XP machine running IIS 5.1
It turns out that the problem was a HttpResponse filter that I was applying in the Application_PreRequestHandlerExecute
method in Global.asax. I was applying the filter generically to all requests - even though the filter left the content unchanged for WebResouce.axd, this still caused problems.
The following links helped me out and describe this in more detail:
The solution was to skip applying the filter for WebResouce.axd.
If you happen to be using Visual Studio 2013 Preview, this is a known issue: https://connect.microsoft.com/VisualStudio/feedback/details/792689/webresource-axd-returns-a-200-ok-empty-response
(obviously this doesn't apply to OP, but to anyone coming from google)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With