T
Thom Little
I have an ASP.NET application that I am trying to run on my local server. I
have administrator privilege.
It contains:
private void btnThomButton_Click(object sender, System.EventArgs e)
{
EventLog eventLog = new EventLog("Application" );
eventLog.Source = "Application" ;
eventLog.WriteEntry( "Message" );
}
When this is executed the WriteEntry causes an exception ...
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
What and where is this configuration file?
have administrator privilege.
It contains:
private void btnThomButton_Click(object sender, System.EventArgs e)
{
EventLog eventLog = new EventLog("Application" );
eventLog.Source = "Application" ;
eventLog.WriteEntry( "Message" );
}
When this is executed the WriteEntry causes an exception ...
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
What and where is this configuration file?