Posted on: 3/9/2015 8:39:54 AM | Views : 544

Hello , 
I am trying to create a Source name for my Application and log the errors in the Event Viewer . Currently its logging with default "Application" . 
if (!System.Diagnostics.EventLog.SourceExists(AppName)) { System.Diagnostics.EventLog.CreateEventSource(AppName, LogName); } System.Diagnostics.EventLog myLog = new System.Diagnostics.EventLog(AppName); myLog.Source = AppName;

I get error When I try to log using the above code . 
I don't have Admin access . Is there any possibility of achieving it without admin access and after hosting it in the IIS.?

Thank,
Bala

Go to the complete details ...