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.Diagno stics.EventLog. SourceExists(ap plicationName))
{
System.Diagnost ics.EventLog.Cr eateEventSource (applicationNam e, "ESHOP");
}
}
catch(System.Se curity.Security Exception e)
{
throw new System.Security .SecurityExcept ion(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.Diagno stics.EventLog. SourceExists(ap plicationName))
{
System.Diagnost ics.EventLog.Cr eateEventSource (applicationNam e, "ESHOP");
}
}
catch(System.Se curity.Security Exception e)
{
throw new System.Security .SecurityExcept ion(e.Message);
}
tnx
stefan
Comment