Custom HttpHandler returns 404 after migrating to Vs2012

After migrating an web forms app to visual studio 2012 we started to observe some odd behaviour.

The custom http handler used across the site to render images was returning a 404. The framework version had not been changed, nor had any configuration been updated. I decided to do a diff on the web.config from before and after the solution upgrade and sure enough, there it was. The resourceType attribute of the handler element had been switched from ‘unSpecified’ to ‘file’. You can read more about handler configuration and the resourceType attribute on the documentation page.

Guy Harwood

Read more posts by this author.