PC Review


Reply
Thread Tools Rate Thread

Cannot Consistently and Reliably Write to a Custom Event Log from DotNet

 
 
Charles
Guest
Posts: n/a
 
      12th Oct 2010
There are an abundance of posts about this subject, but none I have found
address this particular problem.

I have created a custom event log, and an event source, and registered one
with the other. But on some machines, try as I might, I can't get my
application to write to the custom event log. The application is identical
on both servers, which are running Windows Server 2008 R2 x64.

I have made the application as simple as I possibly can, and on some servers
it just works. But on others it always writes to the Application event log.

The only difference I can come up with is that [probably], on the servers
where it works, I ran my application to create the event log and source
_before_ trying to write to the event log. On the machines where it doesn't
work there could be some early events for my custom source already in the
Application event log.

Could this be the problem? If so, how do I get Windows to stop using the
Application event log and start using my custom log? I can't clear the
Application event log, as this is managed by others.

Thanks for any clues.

Charles


 
Reply With Quote
 
 
 
 
Charles
Guest
Posts: n/a
 
      13th Oct 2010
Hi Steel

Thanks for the heads-up.

Charles


"Steel" <""Fake99XX1199999fake\"@(Big)(Steel)theXfactor.com"> wrote in
message news:(E-Mail Removed)...
> On 10/12/2010 5:50 AM, Charles wrote:
>> There are an abundance of posts about this subject, but none I have
>> found address this particular problem.
>>
>> I have created a custom event log, and an event source, and registered
>> one with the other. But on some machines, try as I might, I can't get my
>> application to write to the custom event log. The application is
>> identical on both servers, which are running Windows Server 2008 R2 x64.
>>
>> I have made the application as simple as I possibly can, and on some
>> servers it just works. But on others it always writes to the Application
>> event log.
>>
>> The only difference I can come up with is that [probably], on the
>> servers where it works, I ran my application to create the event log and
>> source _before_ trying to write to the event log. On the machines where
>> it doesn't work there could be some early events for my custom source
>> already in the Application event log.
>>
>> Could this be the problem? If so, how do I get Windows to stop using the
>> Application event log and start using my custom log? I can't clear the
>> Application event log, as this is managed by others.
>>
>> Thanks for any clues.
>>
>> Charles
>>
>>

>
> You should post to the MSDN forums now, as this forum is pretty much dead
> now when MS abandon NG servers. You can get to MSDN easily with your ng
> reader by using MS NNTP Bridge program, a free download. All the action is
> at MSDN now.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Impersonation and Custom Event Log - write access denied JimLad Microsoft ASP .NET 0 26th Jan 2010 03:59 PM
Using Enterprise Library to write in a custom event log Eniac Microsoft ASP .NET 0 15th Jun 2006 07:28 PM
EventLog Doesn't write to Custom Event Log prateekbaxi@gmail.com Microsoft Dot NET Framework 0 18th May 2006 04:27 PM
How to write the event handler for the custom control ( Menu Item) =?Utf-8?B?bG9zdHdpbmdz?= Microsoft Outlook VBA Programming 2 18th Nov 2005 11:24 PM
i would like to write my event that will react on specific keys in my custom DataGrid (WinForms)... Serdge Kooleman Microsoft C# .NET 1 20th Oct 2005 10:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 AM.