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 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
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 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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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
|
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}
|
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"...
|
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)
| |
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
|
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) {
|
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...
|
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,...
|
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,...
|
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...
| |
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |