473,804 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EventLog.WriteE ntry(...) Cause Exception on Windows 98/98SE

Hi,

Why EventLog.WriteE ntry() 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 3104
I believe System.Diagnost ics.EventLog doesnt support '98 on account of
it not having one...

r.

"John Lee" <jo*********@pu rsca.com> wrote in message news:<#u******* *******@TK2MSFT NGP12.phx.gbl>. ..
Hi,

Why EventLog.WriteE ntry() 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.Diagnost ics.EventLog doesnt support '98 on account of
it not having one...

r.

"John Lee" <jo*********@pu rsca.com> wrote in message news:<#u******* *******@TK2MSFT NGP12.phx.gbl>. ..
Hi,

Why EventLog.WriteE ntry() 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***********@h otmail.com (Robbie Harris) wrote in
news:16******** *************** **@posting.goog le.com:
I believe System.Diagnost ics.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 PlatformNotSupp ortedException exceptions for both 98
and ME, as in:

try {
EventLog obj = new EventLog("Appli cation", ".", "MyApp");
obj.WriteEntry( "Foo")
}
catch (PlatformNotSup portedException 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***********@h otmail.com (Robbie Harris) wrote in
news:16******** *************** **@posting.goog le.com:
I believe System.Diagnost ics.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
2033
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 continue the processing from each thread. My service starts fine (gives me no errors, etc), but it doesn't seem to start the new threads. I am new to windows services, so I don't know if I'm doing something wrong. Should I maybe be doing this...
0
388
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? Thanks! John
5
4030
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: {System.InvalidOperationException} : {System.InvalidOperationException} HelpLink: Nothing InnerException: {System.ComponentModel.Win32Exception}
7
3932
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 Exception Management Application Block using installutil. Our Application uses impersonation and used to work fine on Windows 2000 Server. Now we installed it on a Windows Server 2003 and when an exception is raised, we get an "Access is denied"...
0
376
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 Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex)
5
9786
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 Security Exception Description: The application attempted to perform an operation not allowed
0
6102
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: void writeToEventLog(string msg, bool error) {
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10308
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.