Re: Possible to change name of trace.axd in web.config file?

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 06/14/04


Date: Mon, 14 Jun 2004 00:10:04 -0500

That said, you should be able to change the name of trace.axd in the
machine.config file to a different name and the HttpHandler it maps to will
answer to that name instead. Note that if you change the extension, you
must make sure that the new extension maps to an extension that ASP.NET
handles. You can change that via the IIS MMC.

Joe K.

"Scott M." <s-mar@nospam.nospam> wrote in message
news:eNE4EjcUEHA.3420@TK2MSFTNGP12.phx.gbl...
> The trace log (trace.axd) is a virtual file. It is created in memory only
> and does not exist physically on your hard drive. As such, you probably
> won't be able to get much farther than you are right now. It would be
> easier to simply write to your application's own log file for users to
view
> or that your application can read and display.
>
>
> "who be dat?" <whatever@dot.com> wrote in message
> news:10cpv7ubqjfkl2f@corp.supernews.com...
> > Hello all. I'm writing an application that is writing trace information
> > that can be viewed in trace.axd. I would like to rename this and use a
> > different name specific to my application. I know the name of this is
set
> in
> > machine.config. I was hoping it would be possible to change this in
> > web.config. I got it to work, kind of. Good news is I can change the
name
> in
> > my web.config file. Bad news is that trace.axd still works meaning I can
> > access the log file by using two different names, the one I created in
> > web.config and trace.axd . There is a bit of a problem with this though.
> > When I click on a link to view trace results in my custom axd webpage,
the
> > links are actually to the trace.axd webpage instead of using the name I
> > supplied in web.config file.
> >
> > Any ideas how I can do this or is it even possible? The reason why I
want
> > to do this is because I'm writing a web app I'd like to release to the
> > public upon completion. I write some error messages out to the trace
log
> to
> > help with diagnosing problems. Thing is, the trace information could
> > compromise some security I'm implementing. I'd like to rename the trace
> > webpage in web.config. That way, when someone installs this on a
> webhosting
> > service, they can rename the webpage to whatever they want to and keep
it
> > secret thereby helping a bit in the area of security.
> >
> >
> >
> > Chris Smith
> >
> >
> >
>
>



Relevant Pages

  • Re: Possible to change name of trace.axd in web.config file?
    ... > easier to simply write to your application's own log file for users to ... I'm writing an application that is writing trace information ... >> links are actually to the trace.axd webpage instead of using the name I ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Possible to change name of trace.axd in web.config file?
    ... > easier to simply write to your application's own log file for users to ... I'm writing an application that is writing trace information ... >> links are actually to the trace.axd webpage instead of using the name I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ETW trace question
    ... SEH or vectored - and call flush from there. ... > If my user app crashes when logging to a ETW tracing session my log ... the log file is never written ... > until the trace session is stopped. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: What tuning can be done on disk writes?
    ... Enable a 10046 trace before you run this script again. ... This will tell you whether your waits are for 'log file parallel write' ... SQL> alter sesssion set event '10046 trace name context forver, ...
    (comp.databases.oracle.server)
  • Re: Trace.Write in helper class not showing up in Trace.axd
    ... accepts the page reference and created a private method in the class, too, ... > I was able to reproduce this problem since the Trace you used in Asp.net ... > webpage is different from the Trace you used in class library. ...
    (microsoft.public.vsnet.debugging)

Loading