By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,353 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,353 IT Pros & Developers. It's quick & easy.

Application Block ExceptionManager- problem

P: n/a
Hello All

I have a web application in which I am using Microsoft.ApplicationBlocks.ExceptionManagement to Publish the Exception details in Event Log

I have Windows Authentication set for application and Intergrated Windows Authentication (with "NO" Anonumous Access) set in IIS

Even though I get following error when Pulish Mehtod of ExceptionManager is called.
[SecurityException: Requested registry access is not allowed.] Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473 System.Diagnostics.EventLog.FindSourceRegistration (String source, String machineName, Boolean readOnly) System.Diagnostics.EventLog.SourceExists(String source, String machineName) System.Diagnostics.EventLog.SourceExists(String source) Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValidSource() in

Please let me know where is the problem here.

Regards
Makarand Keer
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Typically the aspnet user account that processes web requests doesn't have
access to the registry.

bill

"Makarand" <an*******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.com...
Hello All

I have a web application in which I am using Microsoft.ApplicationBlocks.ExceptionManagement to Publish the Exception
details in Event Log.
I have Windows Authentication set for application and Intergrated Windows Authentication (with "NO" Anonumous Access) set in IIS.
Even though I get following error when Pulish Mehtod of ExceptionManager is called. [SecurityException: Requested registry access is not allowed.] Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Diagnostics.EventLog.FindSourceRegistration (String source, String
machineName, Boolean readOnly)
System.Diagnostics.EventLog.SourceExists(String source, String machineName)
System.Diagnostics.EventLog.SourceExists(String source)
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid
Source() in
Please let me know where is the problem here.

Regards
Makarand Keer

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.