Createing a httpmodule to log IIS

  • Thread starter Thread starter Mick Walker
  • Start date Start date
M

Mick Walker

I am interested in creatign a httpmodule that will log all IIS requests
to SQL Server.

I am just wondering, how would I be able to log bad requests such as 404
etc? Would I have to change the custom error page to a page that could
alert my httpmodule?
 
Hello Mick,

Just crete the handle for the HttpContext.Error and control your errorst
there

see sample there http://www.codegod.de/WebAppCodeGod/exception-handling-in-aspnet-AID375.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


MW> I am interested in creatign a httpmodule that will log all IIS
MW> requests to SQL Server.
MW>
MW> I am just wondering, how would I be able to log bad requests such as
MW> 404 etc? Would I have to change the custom error page to a page that
MW> could alert my httpmodule?
MW>
MW> http://www.mick-walker.co.uk
MW>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top