473,396 Members | 1,743 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,396 software developers and data experts.

EventLog.WriteEntry(...) Cause Exception on Windows 98/98SE

Hi,

Why EventLog.WriteEntry() works fine with Windows ME (where is the message
being written or just ignored?) and throw exception on Windows98 and 98SE.
Should it be handled at Framework level?

Thanks!

John
Nov 15 '05 #1
4 3054
I believe System.Diagnostics.EventLog doesnt support '98 on account of
it not having one...

r.

"John Lee" <jo*********@pursca.com> wrote in message news:<#u**************@TK2MSFTNGP12.phx.gbl>...
Hi,

Why EventLog.WriteEntry() works fine with Windows ME (where is the message
being written or just ignored?) and throw exception on Windows98 and 98SE.
Should it be handled at Framework level?

Thanks!

John

Nov 15 '05 #2
I believe System.Diagnostics.EventLog doesnt support '98 on account of
it not having one...

r.

"John Lee" <jo*********@pursca.com> wrote in message news:<#u**************@TK2MSFTNGP12.phx.gbl>...
Hi,

Why EventLog.WriteEntry() works fine with Windows ME (where is the message
being written or just ignored?) and throw exception on Windows98 and 98SE.
Should it be handled at Framework level?

Thanks!

John

Nov 15 '05 #3
ro***********@hotmail.com (Robbie Harris) wrote in
news:16*************************@posting.google.co m:
I believe System.Diagnostics.EventLog doesnt support '98 on account of
it not having one...

r.


That's what he said. However, it works on ME, which also doesn't have one.

As for the answer, I couldn't tell you.

Mark
Nov 15 '05 #4
oops - should have read the post more carefully. the framework
*should* raise a PlatformNotSupportedException exceptions for both 98
and ME, as in:

try {
EventLog obj = new EventLog("Application", ".", "MyApp");
obj.WriteEntry("Foo")
}
catch (PlatformNotSupportedException ex) {
//write to a file or something
}

see http://msdn.microsoft.com/library/de...ewkwinsupp.asp

r.

Mark <mark@--somewhere--.com> wrote in message news:<Xn******************************@207.46.248. 16>...
ro***********@hotmail.com (Robbie Harris) wrote in
news:16*************************@posting.google.co m:
I believe System.Diagnostics.EventLog doesnt support '98 on account of
it not having one...

r.


That's what he said. However, it works on ME, which also doesn't have one.

As for the answer, I couldn't tell you.

Mark

Nov 15 '05 #5

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

Similar topics

8
by: Fabio Papa | last post by:
I am trying to write a windows service that sends emails to clients at specific times based on information in a sql db. Since this is done for multiple cities, I start a thread for each city and...
0
by: John Lee | last post by:
Hi, Why EventLog.WriteEntry() works fine with Windows ME (where is the message being written or just ignored?) and throw exception on Windows98 and 98SE. Should it be handled at Framework level?...
5
by: David Conorozzo | last post by:
I am able to create new sources using CreateEventSource. I can call GetEventLogs, I can delete sources, I can see if sources exist BUT, as soon as I try a "WriteEntry", I get an exception: ...
7
by: Lucas | last post by:
Hi, I have an ASP.Net application written with VS.Net 2002 (Net FWK 1.0). This Web Application uses Exception Management Application Block to log Events to Windows Event Log. We registered the...
0
by: Karthik Srinivasan | last post by:
Hi, My web application which runs on Windows 2003 server writes to EventLog during application startup but I get the following exception Requested registry access is not allowed. at...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
0
by: jammendolia | last post by:
Hello all, I am having an intermittent exception occur when writing the the eventlog from a windows service application written in c#, running on a Win2k SP4 server. Here's the code: ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.