How to access other machines' event log files from a web server?

A

Andrew

Hello, friends,

We have a .net web app, which will need to access event log files of other
machines in our company's network using System.Diagnostics.EventLog namespace.

In Web.config, we set:

<identity impersonate="true"/>

In IIS Directory Security setting tab, we checked all Authenticated Access,
and unchecked Anonymous Access.

But, it still does not work. When a user visit this web app, he/she has no
problem to visit other pages, except the one that needs to retrieve event log
info from other machines. The error message is:

Access to the registry key is denied.

Any ideas, reference papers? Help please....

Thanks.
 
D

Dominick Baier [DevelopMentor]

Hello Andrew,

Have you enabled delegation on the server?
whom do you impersonate?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top