473,378 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Logging in ASP.NET application

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
Jul 7 '06 #1
2 959
Here's a complete guide to reading, and writing to, the event log :

http://www.4guysfromrolla.com/webtec...2/ch02.9.shtml

Here's a couple more references :

http://msdn.microsoft.com/library/de...sp08232001.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/
===================================
"anonymous" <an*******@msn.comwrote in message news:ui**************@TK2MSFTNGP05.phx.gbl...
>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

Jul 7 '06 #2
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...b;en-us;329291

And boom it works.
Juan you have solved my problem which I struggled for Several Hours.

Thanks

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uT**************@TK2MSFTNGP05.phx.gbl...
Here's a complete guide to reading, and writing to, the event log :

http://www.4guysfromrolla.com/webtec...2/ch02.9.shtml

Here's a couple more references :

http://msdn.microsoft.com/library/de...sp08232001.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/
===================================
"anonymous" <an*******@msn.comwrote in message
news:ui**************@TK2MSFTNGP05.phx.gbl...
>>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


Jul 8 '06 #3

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

Similar topics

0
by: Joe Bloggs | last post by:
Hi all, I take the pleasure to inform that Dotnet Commons Logging has been released for use. Dotnet Commons Logging, a subproject of the Donet Commons project currently located under the...
0
by: Ollie Riches | last post by:
I have managed to get asycnhronous logging work for an asp.net application and I wanted some clarification on the method. Normally if the application is logging synchronously it has all the...
6
by: Burkhard Schultheis | last post by:
As I wrote last week, we have a problem with a DB2 V8 on Linux. Here is what is in db2diag.log during online backup: Starting a full database backup. 2004-04-01-02.33.54.760164 ...
3
by: Karuppasamy | last post by:
Hi I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net . I installed everything as per the Instructions given in the 'Development Using the Logging Block'. ...
16
by: Einar Høst | last post by:
Hi, I'm getting into the Trace-functionality in .NET, using it to provide some much-needed logging across dlls in the project we're working on. However, being a newbie, I'm wondering if some...
0
by: rajesh.hanchate | last post by:
Please help me in resolving this issue. I am using EnterpriseLibrary 2.0 Exception and logging block for logging exceptions to event log. It works fine for sometime. After some time it stops...
2
by: Anup Daware | last post by:
Hi Group, Can somebody tell me where I can find the internals of Logging application block 2.0/3.0. I need answers for the questions like: What best practices have followed in the...
6
by: Larry Bates | last post by:
Every time I look at the logging module (up until now) I've given up and continue to use my home-grown logger that I've been using for years. I'm not giving up this time ;-) I find that I...
4
by: Alexandru Mosoi | last post by:
why doesn't logging throw any exception when it should? how do I configure logging to throw exceptions? .... logging.fatal('asdf %d', '123') .... except: .... print 'this line is never...
6
by: Thomas Heller | last post by:
I'm using the logging module in my comtypes library to log 'interesting' things that happen. In other words, the idea is if the user of the library is interested in the details that happen in the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.