http module doesn't seem to load? [Answered]RSS

2 replies

Last post Sep 24, 2008 07:37 AM by e1ny

  • http module doesn't seem to load?

    Sep 23, 2008 05:31 PM|e1ny|LINK

    Hi All: I have a simple tracking module that looks at an incoming request, matches a pattern against a regex, inserts a row in a SQL table and returns a static image. I have this DLL running on an IIS6 website with .net 2.0, and it works without any problems.

    I'm trying to migrate this code to a new project on an IIS7 server with .NET 3.5. I just replicated what worked on the IIS 6 website: I created a "Bin" directory and put the DLL in it, and added my reference to the DLL in <system.web> like:



    <add type="myTracker.imageTracker,myTracker" name="myTracker"/>

    and I restarted the website in IIS7, but the module does not seem to be loading...I'm not getting any errors, but it's not intercepting the incoming request and "doing it's thing" like it does in the IIS6 website. Is there a different way to call the module in the web.config?

  • Re: http module doesn't seem to load?

    Sep 24, 2008 07:27 AM|e1ny|LINK

    one other snippet of info....when I opened this new project in VWD2008 it prompted me if I wanted to run .net 3.5, and I said "yes" and the web.config has all the 3.5 -related stuff in it. And of course 3.5 is installed on the server already.

    But when I see the default 404 page (instead of being servied the image by the HTTP module), I see:

    Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

    Not sure if that is an issue or not.

  • Re: http module doesn't seem to load?

    Sep 24, 2008 07:37 AM|e1ny|LINK

    oh well, a little process-of-elimination never fails me<g>.

    After staring at the 3.5-related web.config code, I realized that my module needed to be added to the new section:



    instead of least it's working now.