When running my application on accounts that don't have admin privileges, I
recieve the following error (I am trying to write to the Application event
log):
System.Security.SecurityException: The event source
ExceptionManagerInternalException does not exist and cannot be created with
the current permissions. ---> System.Security.SecurityException: Requested
registry access is not allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLog.CreateEventSource(Stri ng source, String
logName, String machineName, Boolean useMutex)
at System.Diagnostics.EventLog.CreateEventSource(Stri ng source, String
logName, String machineName)
at System.Diagnostics.EventLog.CreateEventSource(Stri ng source, String
logName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValidSource()
--- End of inner exception stack trace ---
at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValidSource()
at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exception
exception, NameValueCollection additionalInfo, NameValueCollection
configSettings)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInternalException(Exception exception, NameValueCollection additionalInfo)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exception exception, NameValueCollection additionalInfo)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exception exception)
at FERC.DAMS.Common.ExceptionHandler.Publish(Exceptio n ex)
at FERC.DAMS.UI.Windows.Controls.Screen.DamScreenCtl. Finish()
at FERC.DAMS.UI.Windows.Form.Form1.mnuFinish_Click(Ob ject sender,
EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
What permissions do I need to give these accounts to make them work correctly?
Thanks,
Don Hurley