472,794 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

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

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

Nov 18 '05 #1
5 2846
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?" <wh******@dot.com> wrote in message
news:10*************@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

Nov 18 '05 #2
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-***@nospam.nospam> wrote in message
news:eN**************@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?" <wh******@dot.com> wrote in message
news:10*************@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


Nov 18 '05 #3
Yeah, I'm aware trace.axd is a virual file.Thanks for the suggestion. I
suppose I could just create such a file. Doesn't sound like it would be big
deal. I'm just at a loss to explain why this can't be done though.
Machine.config provides teh name of trace.axd and such, seems like you
should be able to change it. However, I suppose it's possible Microsft
didn't intend for this to be changed on a per application basis. Thanks
again.

Chris Smith

"Scott M." <s-***@nospam.nospam> wrote in message
news:eN**************@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?" <wh******@dot.com> wrote in message
news:10*************@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


Nov 18 '05 #4
Yeah, I think you can change the name of trace.axd to something else. Sure
would be nice if you could do it on a per application basis. I'll probably
do what the other guy said and write necessary information out to a log file
I will create. Thanks!!

Chris Smith

"Joe Kaplan (MVP - ADSI)" <jo*************@removethis.accenture.com> wrote
in message news:Of**************@tk2msftngp13.phx.gbl...
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-***@nospam.nospam> wrote in message
news:eN**************@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?" <wh******@dot.com> wrote in message
news:10*************@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



Nov 18 '05 #5
You can change it on a per application basis. It is just an HttpHandler.
Just clear it out in the config of each application and then re-add it with
whatever name you want. Check out the configuration reference for the
httpHandlers section.

In terms of doing instrumentation stuff in your web application, you might
want to consider looking at things like Log4Net
http://logging.apache.org/log4net/ or Microsoft's Logging Application Block.
Both provide more full-featured logging and instrumentation frameworks for
your application.

Joe K.

"who be dat?" <wh******@dot.com> wrote in message
news:10*************@corp.supernews.com...
Yeah, I think you can change the name of trace.axd to something else. Sure would be nice if you could do it on a per application basis. I'll probably do what the other guy said and write necessary information out to a log file I will create. Thanks!!

Chris Smith

"Joe Kaplan (MVP - ADSI)" <jo*************@removethis.accenture.com> wrote
in message news:Of**************@tk2msftngp13.phx.gbl...
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-***@nospam.nospam> wrote in message
news:eN**************@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?" <wh******@dot.com> wrote in message
news:10*************@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
>
>
>



Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joshua Coady | last post by:
Do Trace calls have any impact on performance if Trace is disabled in the config file? Josh
8
by: Vincent Finn | last post by:
I know the answer to the question above is yes but my reason for asking is that it doesn't seem to work properly I have a manged C++ WinForms project In it I have a form A, I want to derive a...
3
by: Michael BÝcker-Larsen | last post by:
Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a...
2
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
1
by: Olav Tollefsen | last post by:
I get the included error message when trying to run my ASP.NET application under Windows Server 2003 (with all updates installed). How can I troubleshoot this? Olav File or assembly name...
0
by: mrkbrndck | last post by:
I would like to open a log file in a windows UI that corresponds to the file maintained in the loggingDistributorConfig.config file. Has any one done this? Below is the code I tried to use and...
13
by: Alison Givens | last post by:
....... that nobody knows the answer. I can't imagine that I am the only one that uses parameters in CR. So, my question again: I have the following problem. (VB.NET 2003 with CR) I have a...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
by: james.dixon | last post by:
Hi I have been having a bit of a look at the Microsoft Logging Application Block (using .NET 1.1). I found it easy to get going, but now have struck a bit of a brick wall. I want to...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.