In ASP.NET, when building a web server control in a class library that includes an HttpHandler is there a way to automatically register the handler without having to manually edit the web application's web.config file?
I have a class library that contains a CompositeControl. In the composite control I have an Image control with a ImageUrl property set to an HttpHandler. In order for the HttpHandler to work from an application that uses the class library I have to make an entry in the web.config file:
<add verb="*" path="Icon.ashx" type="ClassLibrary.MyHandler" />
I've read this blog post which outlines how to trick the designer into doing this for you, but I'd like something that doesn't require the user of my class library to enter the designer in Visual Studio for this to work.