Logging in ASP.NET application

  • Thread starter Thread starter anonymous
  • Start date Start date
A

anonymous

I am trying to use the event log in an ASP.NET application

I have tried my own logging

I have tried using MSAB logging

No success yet?

Any suggestions/Samples?

Now I am ready to use anything.

I am thinking of using log4net but I thought since MS has suit of these it
will be better
 
Here's a complete guide to reading, and writing to, the event log :

http://www.4guysfromrolla.com/webtech/chapters/ASPNET2/ch02.9.shtml

Here's a couple more references :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp08232001.asp

http://www.odetocode.com/Articles/294.aspx




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
Thanks Juan,
For a quick Reply.

This is the same way I had before. And you re-enforced my view.

Here is the context . I used previously logging in WindowsService. So the
permission for the account were same as the way it is run.

But here in ASP.NET the problem is:
ASPNEt account does not have permissions to create an eventsource.
To solve that I followed googling my errormessage/exception the
SecurityException

Which took me to the following article which suggested I create the
EventSource first and then try.
http://support.microsoft.com/default.aspx?scid=kb;en-us;329291

And boom it works.


Juan you have solved my problem which I struggled for Several Hours.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top