Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > [Vista\Longhorn] getting error reading EventLog from Vista\Longhor

Reply
Thread Tools Display Modes

[Vista\Longhorn] getting error reading EventLog from Vista\Longhor

 
 
Manoj Chanchawat
Guest
Posts: n/a

 
      03-25-2008
Hey,

I am getting error while reading event log for a VISTA - LONGHORN machine. I
am reading EventLog something in this sequence:

::OpenEventLog()
::ReadEventLog() – I read this event log in a buffer size equivalent to
“EVENTLOGRECORD”.

I am able to read the name of the event and Event ID’s correctly. But I am
getting error in reading the event Description. The method I am using is to
read the registry at following location to get path for the image file:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application

When we read description from this image file I am getting error: here is
one of the error messages for one of the event generated for “Desktop Window
Manager”:

The description for Event ID ( 9009 ) in Source ( Desktop Window Manager )
could not be found. It contains the following insertion string(s): 0x40010004

Error Message: The specified resource type cannot be found in the image
file. (0x00000715)

Message Dll(s): \\<Machine Name>\C$\Windows\system32\dwm.exe


Can anybody tell me what’s going wrong? I am able to read event log for
other OS machines.

 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a

 
      03-25-2008
As you've probably observed it tells you that the description cannot be
found and then proceeds to give you the details of the description that
cannot be found in the self-same breath - albeit in a comma delimted format.
No idea why it behaves like that, but you can get it in a better format via
wmi queries.

If you want to stick with the same approach, then you should still be able
to parse that to get the information you require.

--
Jon


"Manoj Chanchawat" <> wrote in
message news:C3606CA2-AEB4-44B3-A461-...
> Hey,
>
> I am getting error while reading event log for a VISTA - LONGHORN machine.
> I
> am reading EventLog something in this sequence:
>
> ::OpenEventLog()
> ::ReadEventLog() – I read this event log in a buffer size equivalent to
> “EVENTLOGRECORD”.
>
> I am able to read the name of the event and Event ID’s correctly. But I am
> getting error in reading the event Description. The method I am using is
> to
> read the registry at following location to get path for the image file:
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application
>
> When we read description from this image file I am getting error: here is
> one of the error messages for one of the event generated for “Desktop
> Window
> Manager”:
>
> The description for Event ID ( 9009 ) in Source ( Desktop Window Manager )
> could not be found. It contains the following insertion string(s):
> 0x40010004
>
> Error Message: The specified resource type cannot be found in the image
> file. (0x00000715)
>
> Message Dll(s): \\<Machine Name>\C$\Windows\system32\dwm.exe
>
>
> Can anybody tell me what’s going wrong? I am able to read event log for
> other OS machines.
>


 
Reply With Quote
 
Manoj Chanchawat
Guest
Posts: n/a

 
      03-25-2008
Hey Jon,

thanks. But as you said, i am using the "format" command to parse the string.

::FormatMessage( FORMAT_MESSAGE_FROM_HMODULE |
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK,

hLibrary, m_dwEventID, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR)&msgBuffer_out, 0, (va_list*)aInsertStrs);


But it seems that the string is itself not coming from the image file. So i
guess there is no description parameter in the image file where we can read.
Am i right in my understanding?
Also i read at many places there will be new way to read the event log on
long horn machine. Is this related to that??

please reply.

thanks,
Manoj


"Jon" wrote:

> As you've probably observed it tells you that the description cannot be
> found and then proceeds to give you the details of the description that
> cannot be found in the self-same breath - albeit in a comma delimted format.
> No idea why it behaves like that, but you can get it in a better format via
> wmi queries.
>
> If you want to stick with the same approach, then you should still be able
> to parse that to get the information you require.
>
> --
> Jon
>
>
> "Manoj Chanchawat" <> wrote in
> message news:C3606CA2-AEB4-44B3-A461-...
> > Hey,
> >
> > I am getting error while reading event log for a VISTA - LONGHORN machine.
> > I
> > am reading EventLog something in this sequence:
> >
> > ::OpenEventLog()
> > ::ReadEventLog() – I read this event log in a buffer size equivalent to
> > “EVENTLOGRECORD”.
> >
> > I am able to read the name of the event and Event ID’s correctly. But I am
> > getting error in reading the event Description. The method I am using is
> > to
> > read the registry at following location to get path for the image file:
> >
> > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application
> >
> > When we read description from this image file I am getting error: here is
> > one of the error messages for one of the event generated for “Desktop
> > Window
> > Manager”:
> >
> > The description for Event ID ( 9009 ) in Source ( Desktop Window Manager )
> > could not be found. It contains the following insertion string(s):
> > 0x40010004
> >
> > Error Message: The specified resource type cannot be found in the image
> > file. (0x00000715)
> >
> > Message Dll(s): \\<Machine Name>\C$\Windows\system32\dwm.exe
> >
> >
> > Can anybody tell me what’s going wrong? I am able to read event log for
> > other OS machines.
> >

>
>

 
Reply With Quote
 
Darrell Gorter[MSFT]
Guest
Posts: n/a

 
      03-25-2008
Hello,
Unless the binary is present that contains the description it will not be
available.
If you are reading the event log from one machine say Windows Vista, with
the event log from a WIndows Server 2008 machine, not all the binaries may
be present on machine you are reading from, so the description cannot be
picked up from those binaries.
Thanks,
Darrell Gorter[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
|> Thread-Topic: [Vista\Longhorn] getting error reading EventLog from
Vista\Lon
|> thread-index: AciOYRWcLVjH1P7URY+7PEjYnVxP+g==
|> X-WBNR-Posting-Host: 59.162.68.1
|> From: =?Utf-8?B?TWFub2ogQ2hhbmNoYXdhdA==?=
<>
|> References: <C3606CA2-AEB4-44B3-A461->
<>
|> Subject: Re: [Vista\Longhorn] getting error reading EventLog from
Vista\Lon
|> Date: Tue, 25 Mar 2008 03:15:00 -0700
|> Lines: 78
|> Message-ID: <A68F4569-81F6-4DA1-ADC2->
|> MIME-Version: 1.0
|> Content-Type: text/plain;
|> charset="Utf-8"
|> Content-Transfer-Encoding: 8bit
|> X-Newsreader: Microsoft CDO for Windows 2000
|> Content-Class: urn:content-classes:message
|> Importance: normal
|> Priority: normal
|> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992
|> Newsgroups: microsoft.public.windows.vista.general
|> Path: TK2MSFTNGHUB02.phx.gbl
|> Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.windows.vista.general:278498
|> NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
|> X-Tomcat-NG: microsoft.public.windows.vista.general
|>
|> Hey Jon,
|>
|> thanks. But as you said, i am using the "format" command to parse the
string.
|>
|> ::FormatMessage( FORMAT_MESSAGE_FROM_HMODULE |
|> FORMAT_MESSAGE_ALLOCATE_BUFFER |
|> FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK,

|>
|> hLibrary, m_dwEventID, MAKELANGID(LANG_NEUTRAL,
SUBLANG_DEFAULT),
|> (LPTSTR)&msgBuffer_out, 0, (va_list*)aInsertStrs);
|>
|>
|> But it seems that the string is itself not coming from the image file.
So i
|> guess there is no description parameter in the image file where we can
read.
|> Am i right in my understanding?
|> Also i read at many places there will be new way to read the event log
on
|> long horn machine. Is this related to that??
|>
|> please reply.
|>
|> thanks,
|> Manoj
|>
|>
|> "Jon" wrote:
|>
|> > As you've probably observed it tells you that the description cannot
be
|> > found and then proceeds to give you the details of the description
that
|> > cannot be found in the self-same breath - albeit in a comma delimted
format.
|> > No idea why it behaves like that, but you can get it in a better
format via
|> > wmi queries.
|> >
|> > If you want to stick with the same approach, then you should still be
able
|> > to parse that to get the information you require.
|> >
|> > --
|> > Jon
|> >
|> >
|> > "Manoj Chanchawat" <> wrote
in
|> > message news:C3606CA2-AEB4-44B3-A461-...
|> > > Hey,
|> > >
|> > > I am getting error while reading event log for a VISTA - LONGHORN
machine.
|> > > I
|> > > am reading EventLog something in this sequence:
|> > >
|> > > ::OpenEventLog()
|> > > ::ReadEventLog() – I read this event log in a buffer size
equivalent to
|> > > “EVENTLOGRECORD”.
|> > >
|> > > I am able to read the name of the event and Event ID’s correctly.
But I am
|> > > getting error in reading the event Description. The method I am
using is
|> > > to
|> > > read the registry at following location to get path for the image
file:
|> > >
|> > >
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application
|> > >
|> > > When we read description from this image file I am getting error:
here is
|> > > one of the error messages for one of the event generated for
“Desktop
|> > > Window
|> > > Manager”:
|> > >
|> > > The description for Event ID ( 9009 ) in Source ( Desktop Window
Manager )
|> > > could not be found. It contains the following insertion string(s):
|> > > 0x40010004
|> > >
|> > > Error Message: The specified resource type cannot be found in the
image
|> > > file. (0x00000715)
|> > >
|> > > Message Dll(s): \\<Machine Name>\C$\Windows\system32\dwm.exe
|> > >
|> > >
|> > > Can anybody tell me what’s going wrong? I am able to read event
log for
|> > > other OS machines.
|> > >
|> >
|> >
|>

 
Reply With Quote
 
Manoj Chanchawat
Guest
Posts: n/a

 
      03-26-2008
Hey Darrell,

thanks for reply.
i have checked and the binary is present there on the target machine. Also,
most of binaries related to OS events are in System32 folder.

Regards,
Manoj

""Darrell Gorter[MSFT]"" wrote:

> Hello,
> Unless the binary is present that contains the description it will not be
> available.
> If you are reading the event log from one machine say Windows Vista, with
> the event log from a WIndows Server 2008 machine, not all the binaries may
> be present on machine you are reading from, so the description cannot be
> picked up from those binaries.
> Thanks,
> Darrell Gorter[MSFT]
>
> This posting is provided "AS IS" with no warranties, and confers no rights
> --------------------
> |> Thread-Topic: [Vista\Longhorn] getting error reading EventLog from
> Vista\Lon
> |> thread-index: AciOYRWcLVjH1P7URY+7PEjYnVxP+g==
> |> X-WBNR-Posting-Host: 59.162.68.1
> |> From: =?Utf-8?B?TWFub2ogQ2hhbmNoYXdhdA==?=
> <>
> |> References: <C3606CA2-AEB4-44B3-A461->
> <>
> |> Subject: Re: [Vista\Longhorn] getting error reading EventLog from
> Vista\Lon
> |> Date: Tue, 25 Mar 2008 03:15:00 -0700
> |> Lines: 78
> |> Message-ID: <A68F4569-81F6-4DA1-ADC2->
> |> MIME-Version: 1.0
> |> Content-Type: text/plain;
> |> charset="Utf-8"
> |> Content-Transfer-Encoding: 8bit
> |> X-Newsreader: Microsoft CDO for Windows 2000
> |> Content-Class: urn:content-classes:message
> |> Importance: normal
> |> Priority: normal
> |> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992
> |> Newsgroups: microsoft.public.windows.vista.general
> |> Path: TK2MSFTNGHUB02.phx.gbl
> |> Xref: TK2MSFTNGHUB02.phx.gbl
> microsoft.public.windows.vista.general:278498
> |> NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
> |> X-Tomcat-NG: microsoft.public.windows.vista.general
> |>
> |> Hey Jon,
> |>
> |> thanks. But as you said, i am using the "format" command to parse the
> string.
> |>
> |> ::FormatMessage( FORMAT_MESSAGE_FROM_HMODULE |
> |> FORMAT_MESSAGE_ALLOCATE_BUFFER |
> |> FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK,
>
> |>
> |> hLibrary, m_dwEventID, MAKELANGID(LANG_NEUTRAL,
> SUBLANG_DEFAULT),
> |> (LPTSTR)&msgBuffer_out, 0, (va_list*)aInsertStrs);
> |>
> |>
> |> But it seems that the string is itself not coming from the image file.
> So i
> |> guess there is no description parameter in the image file where we can
> read.
> |> Am i right in my understanding?
> |> Also i read at many places there will be new way to read the event log
> on
> |> long horn machine. Is this related to that??
> |>
> |> please reply.
> |>
> |> thanks,
> |> Manoj
> |>
> |>
> |> "Jon" wrote:
> |>
> |> > As you've probably observed it tells you that the description cannot
> be
> |> > found and then proceeds to give you the details of the description
> that
> |> > cannot be found in the self-same breath - albeit in a comma delimted
> format.
> |> > No idea why it behaves like that, but you can get it in a better
> format via
> |> > wmi queries.
> |> >
> |> > If you want to stick with the same approach, then you should still be
> able
> |> > to parse that to get the information you require.
> |> >
> |> > --
> |> > Jon
> |> >
> |> >
> |> > "Manoj Chanchawat" <> wrote
> in
> |> > message news:C3606CA2-AEB4-44B3-A461-...
> |> > > Hey,
> |> > >
> |> > > I am getting error while reading event log for a VISTA - LONGHORN
> machine.
> |> > > I
> |> > > am reading EventLog something in this sequence:
> |> > >
> |> > > ::OpenEventLog()
> |> > > ::ReadEventLog() – I read this event log in a buffer size
> equivalent to
> |> > > “EVENTLOGRECORD”.
> |> > >
> |> > > I am able to read the name of the event and Event ID’s correctly.
> But I am
> |> > > getting error in reading the event Description. The method I am
> using is
> |> > > to
> |> > > read the registry at following location to get path for the image
> file:
> |> > >
> |> > >
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application
> |> > >
> |> > > When we read description from this image file I am getting error:
> here is
> |> > > one of the error messages for one of the event generated for
> “Desktop
> |> > > Window
> |> > > Manager”:
> |> > >
> |> > > The description for Event ID ( 9009 ) in Source ( Desktop Window
> Manager )
> |> > > could not be found. It contains the following insertion string(s):
> |> > > 0x40010004
> |> > >
> |> > > Error Message: The specified resource type cannot be found in the
> image
> |> > > file. (0x00000715)
> |> > >
> |> > > Message Dll(s): \\<Machine Name>\C$\Windows\system32\dwm.exe
> |> > >
> |> > >
> |> > > Can anybody tell me what’s going wrong? I am able to read event
> log for
> |> > > other OS machines.
> |> > >
> |> >
> |> >
> |>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Eventlog Vista 32 - HRESULT Kees Windows Vista General Discussion 0 07-01-2007 01:22 PM
Windows 2008 (server) Longhorn VMWARE (on phisical disk) - STOP error sp Windows Vista General Discussion 0 06-16-2007 06:51 PM
can't access XP eventlog - why Andy W. Windows Vista Security 0 06-12-2007 06:11 AM
Error Reading Files! plz help Filastin Windows Vista Installation 3 05-01-2007 12:57 AM
DHCP-Client spam in eventlog Robert Schoultz Windows Vista Networking 3 04-16-2007 02:38 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59