Event Log Entry - excess info

Discussion in 'ASP .Net' started by MattC, Jan 7, 2005.

  1. MattC

    MattC Guest

    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
    MattC, Jan 7, 2005
    #1
    1. Advertising

  2. "MattC" <> wrote in message
    news:...
    >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
    John Saunders, Jan 7, 2005
    #2
    1. Advertising

  3. MattC

    MattC Guest

    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(_logname))
    {
    System.Diagnostics.EventLog.CreateEventSource(_logname, _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.EventLogEntryType.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:...
    > "MattC" <> wrote in message
    > news:...
    >>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
    >
    >
    MattC, Jan 7, 2005
    #3
  4. "MattC" <> wrote in message
    news:...
    > 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:...
    >> "MattC" <> wrote in message
    >> news:...
    >>>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
    >>
    >>

    >
    >
    John Saunders, Jan 7, 2005
    #4
  5. MattC

    bruce barker Guest

    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" <> wrote in message
    news:...
    | 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
    |
    |
    bruce barker, Jan 7, 2005
    #5
  6. MattC

    MattC Guest

    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:...
    > "MattC" <> wrote in message
    > news:...
    >> 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:...
    >>> "MattC" <> wrote in message
    >>> news:...
    >>>>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
    >>>
    >>>

    >>
    >>

    >
    >
    MattC, Jan 10, 2005
    #6
  7. "MattC" <> wrote in message
    news:...
    > 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:...
    >> "MattC" <> wrote in message
    >> news:...
    >>> 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:...
    >>>> "MattC" <> wrote in message
    >>>> news:...
    >>>>>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
    >>>>
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >
    John Saunders, Jan 10, 2005
    #7
  8. MattC

    MattC Guest

    :(

    "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:uYti%...
    > "MattC" <> wrote in message
    > news:...
    >> 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:...
    >>> "MattC" <> wrote in message
    >>> news:...
    >>>> 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:...
    >>>>> "MattC" <> wrote in message
    >>>>> news:...
    >>>>>>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
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >
    MattC, Jan 10, 2005
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Guy
    Replies:
    3
    Views:
    592
    Paul Guy
    May 27, 2004
  2. =?Utf-8?B?Y2xpY2tvbg==?=

    Removing excess white space

    =?Utf-8?B?Y2xpY2tvbg==?=, Apr 6, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    17,769
    visserj
    Feb 3, 2011
  3. Joshua Beall
    Replies:
    4
    Views:
    5,433
    informant
    Oct 30, 2003
  4. helmut januschka

    warning: excess elements in scalar initializer

    helmut januschka, Mar 6, 2004, in forum: C Programming
    Replies:
    5
    Views:
    15,121
    Joe Wright
    Mar 6, 2004
  5. Replies:
    0
    Views:
    1,246
Loading...

Share This Page