Monday, September 04, 2006

How to store errors in the trace.axd

Using Trace.xsd in asp.net applications is a nice feature to log errors. To get this work you have to create a web.config which must reside in the application root folder.

The web.config looks like this:

Now whenever an error occurs it is logged and can be accessed via the following url: http://localhost/urapplication/trace.axd

I use the user name "superuser" for illustration only. You could also say .

Depending on if you are using Forms authentication or Windows authentication, you'd either use a user/role name that you've defined, or one that Windows defines such as "USER\Administrators" or DOMAIN\youraccount

No comments:

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...