473,508 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
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
Jul 21 '05 #1
1 6559
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>.

HTH.

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

Jul 21 '05 #2

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

Similar topics

1
1828
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...
1
1852
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...
6
2100
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...
1
2641
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...
1
1112
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...
1
1853
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...
1
344
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:...
2
2228
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...
10
6613
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,...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.