Event Logging in a .NET Web Service
page 1 of 4
Published: 28 Aug 2006
Unedited - Community Contributed
Abstract
This article describes the logging mechanism in a .NET web service. It demonstrates how to write to the Event log from a .NET Web Service and explains how to resolve security issues related to event logging.
by Sandesh Meda
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 94460/ 174

Introduction

A well-written piece of code should theoretically not throw any exceptions.  However, in practice it is almost impossible to test if an application works under every situation.  When errors occur, there are different ways to handle them.  This article discusses how to log exceptions in the Event Log.


View Entire Article

User Comments

Title: Where is the implementation   
Name: Enasr
Date: 2011-11-21 6:22:42 AM
Comment:
i read the article before but now its without any implementation why
Title: clarification   
Name: phani
Date: 2011-03-02 1:59:31 AM
Comment:
where should i write the code for the function WriteToEventLog which is being called by Catch Block
Title: Sample is very good   
Name: Rami
Date: 2009-11-02 10:17:57 AM
Comment:
Ran it successfully using Visual Studio 2008.
Installed the DLL on 2003 server.
Used the OS CMD window to run the InstallUtil found under FRAMEWORK directroy of .NET 2 installtion.
Title: Customer Installations   
Name: Dennis Jakobsen
Date: 2007-11-22 4:54:46 AM
Comment:
Hi,

Thanks for the example, i was running into that exact SecurityException for my Web Service. But how would i a customer install? I obviously can't take my Visual Studio Command Prompt!
Title: sample good   
Name: Lee Peace
Date: 2007-06-20 10:23:07 PM
Comment:
Thanks for this sample !

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-06-25 8:04:14 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search