472,791 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

Security problem with Exception Management Block

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

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
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValidSource()
--- End of inner exception stack trace ---
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValidSource()
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exception
exception, NameValueCollection additionalInfo, NameValueCollection
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInternalException(Exception exception, NameValueCollection additionalInfo)
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exception exception, NameValueCollection additionalInfo)
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?

Don Hurley
Jul 21 '05 #1
1 6336
Hi Don,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you're trying to run an
application without administrator's privileges, you got an exception when
writing to event log. If there is any misunderstanding, please feel free to
let me know.

This exception is thrown because you don't have permission to write to or
create the certain registry keys. So please do the following for workaround.

To workaround this problem, you can grant permission to the user account
for full access to the following registry key.

HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\<L ogType>\<Source>.


Kevin Yu
"This posting is provided "AS IS" with no warranties, and confers no

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Steve O'maley | last post by:
I currently have the Exception Management Application Block working in my base directory, but when I create pages in a subfolder the Exception Management Application Block is never executed. The...
by: Andy | last post by:
Hi All, I'm basically just trying to get started with the Exception Management Application Block and am having some technical difficulties. All I want to do to begin with is create a simple...
by: Páll Ólafsson | last post by:
Hi I have a problem with the Microsoft.ApplicationBlocks.ExceptionManagement? I can't get it to work in RELEASE mode? If I run the project in debug mode the block works fine but when I run the...
by: Danko Greiner | last post by:
Thanx Willy, this was very helpful. But i also need (and want to know) how to do this from code. Can you plase give me right topic in MSDN? is there good example? Thanx p.s. this is...
by: SamIAm | last post by:
Hi There I am busy evaluating using the Exception Management Block in my web app. I have divided my solution into 3 projects. 1) WebApp 2) Business Tier Library 3) Data Tier Library Where...
by: Ellis Yu | last post by:
Dear All, I used VB.Net to write an application which use the exception management in Application Block as error handling. When I deploy the application in the client machine, it's fine. However...
by: Donald Hurley | last post by:
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:...
by: KaNos | last post by:
Hello world, I've made a webservice (c# v2) to install in a server IIS 6 on a Windows 2000 last SP. We can use the webservice in local, throw the pages wich present the methods, with a windows...
by: David Thielen | last post by:
Hi; I am trying to write to the event log using: public const string EVENT_LOG_NAME = "Windward Portal"; if (!EventLog.SourceExists(EVENT_LOG_NAME)) EventLog.CreateEventSource(EVENT_LOG_NAME,...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: lllomh | last post by:
How does React native implement an English player?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.