Application Block ExceptionManager- problem

G

Guest

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.DefaultPublisher.VerifyValidSource() in

Please let me know where is the problem here.

Regards
Makarand Keer
 
W

William F. Robertson, Jr.

Typically the aspnet user account that processes web requests doesn't have
access to the registry.

bill

Makarand said:
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.DefaultPublisher.VerifyValid
Source() in
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top