Click here to Skip to main content
15,880,651 members
Home / Discussions / C#
   

C#

 
QuestionRecursive limit? Pin
leppie6-Jan-03 11:44
leppie6-Jan-03 11:44 
AnswerRe: Recursive limit? Pin
Andres Manggini6-Jan-03 12:01
Andres Manggini6-Jan-03 12:01 
GeneralRe: Recursive limit? Pin
leppie6-Jan-03 19:41
leppie6-Jan-03 19:41 
GeneralRe: Recursive limit? Pin
Andres Manggini7-Jan-03 7:17
Andres Manggini7-Jan-03 7:17 
GeneralRe: Recursive limit? Pin
leppie7-Jan-03 7:44
leppie7-Jan-03 7:44 
GeneralRe: Recursive limit? Pin
Andres Manggini7-Jan-03 8:50
Andres Manggini7-Jan-03 8:50 
GeneralFileSystemWatcher won't work with IIS Log Files Pin
Steve Cox6-Jan-03 10:42
Steve Cox6-Jan-03 10:42 
GeneralRe: FileSystemWatcher won't work with IIS Log Files Pin
Heath Stewart7-Jan-03 3:16
protectorHeath Stewart7-Jan-03 3:16 
This isn't the right way to do this for so many reasons.

First, because IIS writes logs to memory and batches a write operation from time to time (for which the actual file doesn't often change because enough space is allocated for several batch writes).

Second, you're right: ISAPI is a better solution; however, if you are interested in ASP.NET pages (after all, do you really want to know each request for an image, "robots.txt", "favicon.ico", etc.?), you can easily write an IHttpHandler that will write a custom log for you somewhere or use remoting to update a chart in a different application.

There is yet another option that already exists and one which you could extend: performance counters. If you look in your Computer Management MMC snap-in (right-click on "My Computer" and select "Manage..." for easy access), you'll see an extension for logs. You could start by creating your own log file there for this specific purpose. You can also see this in "perfmon.exe" for which you can setup new counters. The .NET Framework has good support for counters, too, so you can take advantage of the file in many ways.

Third, as I touched upon before, you don't want to be notified for requests to things like "robots.txt", "favicon.ico", and all the various spiders do you? If you're interested in legitimate hits to your *pages*, the IIS log will never tell you that unless you plan on parsing a very large file yourself every time it changes.

"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
GeneralRe: FileSystemWatcher won't work with IIS Log Files Pin
Steve Cox7-Jan-03 4:04
Steve Cox7-Jan-03 4:04 
GeneralFileSystemWatcher won't work with IIS Log Files Pin
Steve Cox6-Jan-03 10:42
Steve Cox6-Jan-03 10:42 
GeneralEquivalent of Java's <code>instanceof</code> in C# Pin
Le centriste6-Jan-03 9:46
Le centriste6-Jan-03 9:46 
GeneralRe: Equivalent of Java's <code>instanceof</code> in C# Pin
Nemanja Trifunovic6-Jan-03 10:04
Nemanja Trifunovic6-Jan-03 10:04 
GeneralRe: Equivalent of Java's <code>instanceof</code> in C# Pin
Rob Graham6-Jan-03 10:17
Rob Graham6-Jan-03 10:17 
GeneralRe: Equivalent of Java's <code>instanceof</code> in C# Pin
James T. Johnson6-Jan-03 10:19
James T. Johnson6-Jan-03 10:19 
GeneralThanks for your answers! Pin
Le centriste6-Jan-03 15:30
Le centriste6-Jan-03 15:30 
GeneralCOM Exception Pin
Lmani6-Jan-03 9:45
Lmani6-Jan-03 9:45 
Generaltoolwindow w/o focus Pin
Roger Alsing6-Jan-03 8:06
Roger Alsing6-Jan-03 8:06 
GeneralFileSystemWatcher Question Pin
OBRon6-Jan-03 7:53
OBRon6-Jan-03 7:53 
GeneralRe: FileSystemWatcher Question Pin
Eric Gunnerson (msft)6-Jan-03 13:26
Eric Gunnerson (msft)6-Jan-03 13:26 
GeneralProblems with SQL database connection string Pin
Member 29074626-Jan-03 7:34
Member 29074626-Jan-03 7:34 
GeneralRe: Problems with SQL database connection string Pin
OBRon6-Jan-03 7:42
OBRon6-Jan-03 7:42 
GeneralRe: Problems with SQL database connection string Pin
Paul Riley6-Jan-03 10:25
Paul Riley6-Jan-03 10:25 
GeneralRe: Problems with SQL database connection string Pin
Richard Deeming7-Jan-03 0:40
mveRichard Deeming7-Jan-03 0:40 
GeneralRe: Problems with SQL database connection string Pin
Steve McLenithan7-Jan-03 4:48
Steve McLenithan7-Jan-03 4:48 
GeneralIntPtr to a structure Pin
Nnamdi Onyeyiri6-Jan-03 6:32
Nnamdi Onyeyiri6-Jan-03 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.