Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends .
I am currently working on event logging and i am new in this topic.
In my code i just created the source and log name for event writing under new folder as given in by SAKryukov (Thankyou).
But when i open the event viewer after executing the code i got some error in my debug viewer tool.
MSIL
00001880    54.44116211 [4172] ViewerConfigPath = 'C:\ProgramData\Microsoft\Event Viewer': Microsoft.Windows.ManagementUI.CombinedControls.EventsNode
00001881    54.44121552 [4172] ViewerViewsFolderPath = 'C:\ProgramData\Microsoft\Event Viewer\Views': Microsoft.Windows.ManagementUI.CombinedControls.EventsNode
00001882    54.44123840 [4172] ViewerAdminViewsPath = 'C:\ProgramData\Microsoft\Event Viewer\Views\ApplicationViewsRootNode': Microsoft.Windows.ManagementUI.CombinedControls.EventsNode
00001883    54.44125748 [4172] ViewerExternalLogsPath = 'C:\ProgramData\Microsoft\Event Viewer\ExternalLogs': Microsoft.Windows.ManagementUI.CombinedControls.EventsNode
00001884    54.58862305 [4172] Failed to get ChannelConfigOwningPublisher -122-The data area passed to a system call is too small
00001885    54.61125183 [4172] Getting next publisher from enum failed-259-No more data is available
00001886    54.61446762 [4172] Failed to get ChannelConfigOwningPublisher -122-The data area passed to a system call is too small
00001887    54.61614227 [4172] ExpandNode:After EventsNode:InsertChildren CountOfChildren = 5
00001888    54.90194321 [4172] Wrong type received for PublisherMetadataPublisherGuid
00001889    54.90425110 [4172] PublisherMetadataKeywordName failed for not providing enough memory. Trying with the correct memory -122-The data area passed to a system call is too small
00001890    54.90475464 [4172] PublisherMetadataKeywordName failed for not providing enough memory. Trying with the correct memory -122-The data area passed to a system call is too small
00001891    54.90718460 [4172] Fetching Next Channel failed -259-No more data is available
00001892    55.12010574 [4172] Failed to get ChannelConfigOwningPublisher -122-The data area passed to a system call is too small
00001893    55.12656021 [4172] Failed to get ChannelConfigOwningPublisher -122-The data area passed to a system call is too small
00001894    55.12907028 [4172] Failed to get ChannelConfigOwningPublisher -122-The data area passed to a system call is too small



I thought it is due to the size of log file. But i have tried it with different size of files.
If anybody have solution please explain.
Thank you for answers.
Sorry for Bugging you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900