G
Guest
I am trying to monitor the System eventlog on a another machine using C#.
However, when I instantiate an Eventlog with EventLog("System",
"machinename"), I get an exception with the message "Cannot monitor Event
log. The log may exist on a remote computer".
My code works fine when I use the local machine name, but not if I use a
remote machine.
I already tried the following:
- fully qualified DNS name
- IP address
- same user account with administrator rights on the target machine as on
client
- case sensitive names
Both machines, monitor and target, run W2000 Advanced Server with MSCS
Any ideas?
However, when I instantiate an Eventlog with EventLog("System",
"machinename"), I get an exception with the message "Cannot monitor Event
log. The log may exist on a remote computer".
My code works fine when I use the local machine name, but not if I use a
remote machine.
I already tried the following:
- fully qualified DNS name
- IP address
- same user account with administrator rights on the target machine as on
client
- case sensitive names
Both machines, monitor and target, run W2000 Advanced Server with MSCS
Any ideas?