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 sayDepending 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:
Post a Comment