Preventing IIS logging webresource.axd requests

J

James Hawkins

How can I prevent IIS from logging requests to WebResource.axd? I can
use the MMC snap-in to turn off logging per folder / file but, as this
is not an actual file but a "pseudo-file" known only to ASP.NET, I
cannot stop logging requests to it in this manner.
 
G

Guest

I'm not aware of any way, its either "log or don't log" and a request (no
matter what resource it's for) -- is a request.
What's the goal? Can't you filter your results by using say, the IIS Log
Reader?
Peter
 
J

James Hawkins

I'm not aware of any way, its either "log or don't log" and a request (no
matter what resource it's for) -- is a request.
What's the goal? Can't you filter your results by using say, the IIS Log
Reader?

I guess I can but I never want to see them so I'd rather stop them at
the source.

I did just find a solution, though: you can create a dummy
webresource.axd in the root of the website. In IIS, mark that file
for no-logging. Then ASP.Net ignores the actual file but IIS still
honours the no-logging request.
 

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

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top