G
Guest
I have created WS and Setup project. Created EventLog source and
custom log with EventLogInstaller.
Event log and source are created. WS is run as LocalSystem account so
the problem with write permissions for event log aren't problem
(installation is also executed with the same one).
Service is started with custom installation step and works fine.
But there are few issues that are raised doing all this:
1) i don't want to restart server/computer with service being
installed
2) but without that restart all my entries written to my custom event
log end up in Application log with error:
The description for Event ID ( 0 ) in Source ( XXXX ) cannot be found.
etc...
found suggestions to write registry value for:
EventMessageFile = C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\EventLogMessages.dll
but that also doesn't help.
In some weird cycle i got this things working but after deleting
source and custom log, restarting and installing WS again got the same
problem...?!?!
Anyone knows how to force OS to refresh event source list (found that
on MSDN
) or any other way how to work this out?
custom log with EventLogInstaller.
Event log and source are created. WS is run as LocalSystem account so
the problem with write permissions for event log aren't problem
(installation is also executed with the same one).
Service is started with custom installation step and works fine.
But there are few issues that are raised doing all this:
1) i don't want to restart server/computer with service being
installed
2) but without that restart all my entries written to my custom event
log end up in Application log with error:
The description for Event ID ( 0 ) in Source ( XXXX ) cannot be found.
etc...
found suggestions to write registry value for:
EventMessageFile = C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\EventLogMessages.dll
but that also doesn't help.
In some weird cycle i got this things working but after deleting
source and custom log, restarting and installing WS again got the same
problem...?!?!
Anyone knows how to force OS to refresh event source list (found that
on MSDN
