Unable to create an Event Source on the remote machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ishwar
    New Member
    • Jul 2012
    • 1

    Unable to create an Event Source on the remote machine

    This is the code i was using,

    EventSourceCrea tionData sourceData = new EventSourceCrea tionData(this.e ventSource, this.monitorLog );

    sourceData.Mach ineName = "NodeName";

    EventLog.Create EventSource(sou rceData);

    When I run this code it returns the error "Attempted to perform an unauthorized operation." ... I guess this error message is due to access restriction..

    I do have the administrator credentials, how ever i do not know how to supply the credentials here.. could u please let me know how i can use the credentials and create event source remotely
Working...