473,398 Members | 2,335 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,398 software developers and data experts.

Event Log Entry - excess info

I am able to successfully make entries into the Event Log for my Web App but
all the entries have this before my text:

The description for Event ID ( 0 ) in Source ( Conquest ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:

My Text here.

How can I stop this being writen to the log entry.

TIA

MattC
Nov 19 '05 #1
7 3588
"MattC" <m@m.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
I am able to successfully make entries into the Event Log for my Web App
but all the entries have this before my text:

The description for Event ID ( 0 ) in Source ( Conquest ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:

My Text here.


How are you logging the entry?

Perhaps you should supply an event id?

John Saunders
Nov 19 '05 #2
public class EventLog
{
#region Private Members
System.Diagnostics.EventLog myLog;
private string _logname = "";
#endregion

public string LogName
{
get{ return _logname; }
}

#region Constructors
public EventLog(string eventLogName)
{
_logname = eventLogName;

if(!System.Diagnostics.EventLog.SourceExists(_logn ame))
{
System.Diagnostics.EventLog.CreateEventSource(_log name, _logname);
}

myLog = new System.Diagnostics.EventLog(); //Create a new EventLog object
myLog.Source = _logname;
}
#endregion

#region Methods
public void WriteToLog(string text)
{
WriteToLog(text,System.Diagnostics.EventLogEntryTy pe.Error);
}
public void WriteToLog(string text, System.Diagnostics.EventLogEntryType
msgtype)
{
try
{
myLog.WriteEntry(text, msgtype);//Write the log
}
catch(Exception e)
{
text = e.Message;
//we should email to the system admin person
}
}
#endregion
}
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
I am able to successfully make entries into the Event Log for my Web App
but all the entries have this before my text:

The description for Event ID ( 0 ) in Source ( Conquest ) cannot be
found. The local computer may not have the necessary registry information
or message DLL files to display messages from a remote computer. You may
be able to use the /AUXSOURCE= flag to retrieve this description; see
Help and Support for details. The following information is part of the
event:

My Text here.


How are you logging the entry?

Perhaps you should supply an event id?

John Saunders

Nov 19 '05 #3
"MattC" <m@m.com> wrote in message
news:ew**************@TK2MSFTNGP14.phx.gbl...
public class EventLog
{ .... }
I recommend that you try adding an event id and see if that helps.

John Saunders
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
I am able to successfully make entries into the Event Log for my Web App
but all the entries have this before my text:

The description for Event ID ( 0 ) in Source ( Conquest ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. You may be able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The following information
is part of the event:

My Text here.


How are you logging the entry?

Perhaps you should supply an event id?

John Saunders


Nov 19 '05 #4
when you log events, the event log looks at the eventid, and in the assigned
message dll (see registery entry "EventMessageFile" for your application)
for a resource string with the same id as the message. this string is used
to format the eventlog message. the error you are getting means the resouce
file has no format string for entry 0.

-- bruce (sqlwork.com)
"MattC" <m@m.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
| I am able to successfully make entries into the Event Log for my Web App
but
| all the entries have this before my text:
|
| The description for Event ID ( 0 ) in Source ( Conquest ) cannot be found.
| The local computer may not have the necessary registry information or
| message DLL files to display messages from a remote computer. You may be
| able to use the /AUXSOURCE= flag to retrieve this description; see Help
and
| Support for details. The following information is part of the event:
|
| My Text here.
|
| How can I stop this being writen to the log entry.
|
| TIA
|
| MattC
|
|
Nov 19 '05 #5
Nope, now I get "The description for Event ID ( 7 ) in Source (....."

What is this message DLL it refers to?

TIA

MattC

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:e2**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:ew**************@TK2MSFTNGP14.phx.gbl...
public class EventLog
{

...
}


I recommend that you try adding an event id and see if that helps.

John Saunders
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
I am able to successfully make entries into the Event Log for my Web App
but all the entries have this before my text:

The description for Event ID ( 0 ) in Source ( Conquest ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. You may be able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The following
information is part of the event:

My Text here.

How are you logging the entry?

Perhaps you should supply an event id?

John Saunders



Nov 19 '05 #6
"MattC" <m@m.com> wrote in message
news:e4**************@TK2MSFTNGP15.phx.gbl...
Nope, now I get "The description for Event ID ( 7 ) in Source (....."
Just for fun, try ID 1000. That's a favorite of mine.

John Saunders

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:e2**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:ew**************@TK2MSFTNGP14.phx.gbl...
public class EventLog
{

...
}


I recommend that you try adding an event id and see if that helps.

John Saunders
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
>I am able to successfully make entries into the Event Log for my Web
>App but all the entries have this before my text:
>
> The description for Event ID ( 0 ) in Source ( Conquest ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve this
> description; see Help and Support for details. The following
> information is part of the event:
>
> My Text here.

How are you logging the entry?

Perhaps you should supply an event id?

John Saunders



Nov 19 '05 #7
:(

"The description for Event ID ( 1000 ) in Source".....

What should the descriptions for the events look like and where are they
held??

TIA

MattC

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:uY****************@TK2MSFTNGP15.phx.gbl...
"MattC" <m@m.com> wrote in message
news:e4**************@TK2MSFTNGP15.phx.gbl...
Nope, now I get "The description for Event ID ( 7 ) in Source (....."


Just for fun, try ID 1000. That's a favorite of mine.

John Saunders

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:e2**************@TK2MSFTNGP14.phx.gbl...
"MattC" <m@m.com> wrote in message
news:ew**************@TK2MSFTNGP14.phx.gbl...
public class EventLog
{
...
}

I recommend that you try adding an event id and see if that helps.

John Saunders

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP14.phx.gbl...
> "MattC" <m@m.com> wrote in message
> news:uE**************@TK2MSFTNGP11.phx.gbl...
>>I am able to successfully make entries into the Event Log for my Web
>>App but all the entries have this before my text:
>>
>> The description for Event ID ( 0 ) in Source ( Conquest ) cannot be
>> found. The local computer may not have the necessary registry
>> information or message DLL files to display messages from a remote
>> computer. You may be able to use the /AUXSOURCE= flag to retrieve
>> this description; see Help and Support for details. The following
>> information is part of the event:
>>
>> My Text here.
>
> How are you logging the entry?
>
> Perhaps you should supply an event id?
>
> John Saunders
>
>



Nov 19 '05 #8

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

Similar topics

0
by: wang xiaoyu | last post by:
Hello,everyone. my program runs well in windows,i use tkSimpleDialog to receive some input,but when i copy my program into Linux RH8.0,entrys in my tkSimpleDialog derived Dialog have a vital...
0
by: Gnaneshwar Babu | last post by:
Hi I am facing a problem with extracting event logs of win32 to a file. Am using the following code to extract eventlogs to file use Win32::EventLog; $handle=Win32::EventLog->new("System",...
8
by: Mark | last post by:
Hi, I'm looking for some ideas on how to build a very simple Event processing framework in my C++ app. Here is a quick background ... I'm building a multithreaded app in C++ (on Linux) that...
5
by: Maxine G | last post by:
I have two forms, a menu and a data entry form. The entry form is bound to a query against linked SQL server tables. In the deactivate event, I have some code which asks the user if they want to...
5
by: helmut januschka | last post by:
hi !, Following Code gives me following error's warning: excess elements in scalar initializer char *functionname = { "abs", "sqrt", "sin", "cos", "atan", "log", "exp", "\0"
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
3
by: Charles Law | last post by:
Under what circumstances would e.Cancel be set to True on entry to the Closing event of an MDI child form? I have found that this is why my application won't close properly. I can explicitly set...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
6
by: kirk | last post by:
I have three events, using event handler methods as depicted below. Two of those event handler methods need to reset specific data whenever the other event left fires. I wasn't sure how to...
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?
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:
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...
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...
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...
0
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...

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.