473,395 Members | 1,996 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,395 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 3053
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: 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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.