S
Stefan
Hi NG
I try to create a new EventSource in an asp.net projetct with the following
code but I always get the error
Registry access nod allowed...
I changed the userName in the processModell of my machine.config file to
SYSTEM.
What else do I have to do?
try
{
if (!System.Diagnostics.EventLog.SourceExists(applicationName))
{
System.Diagnostics.EventLog.CreateEventSource(applicationName, "ESHOP");
}
}
catch(System.Security.SecurityException e)
{
throw new System.Security.SecurityException(e.Message);
}
tnx
stefan
I try to create a new EventSource in an asp.net projetct with the following
code but I always get the error
Registry access nod allowed...
I changed the userName in the processModell of my machine.config file to
SYSTEM.
What else do I have to do?
try
{
if (!System.Diagnostics.EventLog.SourceExists(applicationName))
{
System.Diagnostics.EventLog.CreateEventSource(applicationName, "ESHOP");
}
}
catch(System.Security.SecurityException e)
{
throw new System.Security.SecurityException(e.Message);
}
tnx
stefan