dileepav
asked on
System.ComponentModel.win32, access denied error message in dotnet?
Hi Experts,
I am getting System.ComponentModel.win3 2 exception dotnet, access denied error message when I run the following code snippet.
public void WriteToEventLog( Exception objError)
{
//************************ ********** ********** ********** ********** *****
//* Purpose:Writing error to the windows event log *
//* Input parameters: *
//* objError----Exception object *
//* returns : *
//* nothing *
//* ************************** ********** ********** ********** ********** *
System.Diagnostics.EventLo g objEventLog = new System.Diagnostics.EventLo g();
objEventLog.Source = "SMF";
objEventLog.WriteEntry(obj Error.Mess age.ToStri ng());
}
Do anybody know the reason for this error?
Thanks
Dil
I am getting System.ComponentModel.win3
public void WriteToEventLog( Exception objError)
{
//************************
//* Purpose:Writing error to the windows event log *
//* Input parameters: *
//* objError----Exception object *
//* returns : *
//* nothing *
//* **************************
System.Diagnostics.EventLo
objEventLog.Source = "SMF";
objEventLog.WriteEntry(obj
}
Do anybody know the reason for this error?
Thanks
Dil
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Your tips guided me in solving the problem.