Createing a httpmodule to log IIS

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?
 
M

Michael Nemtsev, MVP

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top