title: ASP.NET - Dynamically register an HttpHandler in code (not in web.config)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1888016/any-way-to-add-httphandler-programatically-in-net">Any way to add HttpHandler programatically in .NET?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way I can dynamically register an <code>IHttpHandler</code> in C# code, instead of having to manually add it to the <code>system.web/httpHandlers</code> section in the web.config.</p>
  
  <p>This may sound crazy, but I have good reason for doing this. I'm building a WidgetLibrary that a website owner can use just by dropping a .dll file into their bin directory, and want to support this with minimal configuration to the web.config.</p>