Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Compile a httpmodule as a .dll

My company is using Netegrity for authentication purposes and we have developed an ASP.NET HTTP module to be used with all of our ASP.Net applications.

This HttpModule will be distributed to developers across the company, many of whom are very junior in experience.

Is it possible to compile an HTTPModule into a .dll and distribute it that way instead of as a plain .vb or .cs file? If so, how would you reference this httpmodule  in web.config?


Tuesday, January 11, 2005

1.  Not only is it possible to compile it, but it's necessary. 

2. To reference it in web.config, add an entry under the <httpModules> element (see MSDN).

Tuesday, January 11, 2005

I'll concur with Joe and add that it's a good practice to compile and distribute any library that the other developers will be using (but don't need to touch).

The last thing you need is Jimmy Newbie poking around in your stable code wondering what would happen if he used int's instead of long's.

Tuesday, January 11, 2005

I'd be interested to learn more about how you set this up and how it works.

We have metrics, authentication, etc... currently we use it in a page base class.

What would be the benefits of a httpmodule over this page base class?

Wednesday, February 16, 2005

*  Recent Topics

*  Fog Creek Home