473,388 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Application Block ExceptionManager- problem

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
1 1275
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Betty Y | last post by:
I have been receiving the following error on Event Log for over a week every 10-15 minutes. I deleted the applicaiton, but it still continues. The error is as follows and it has to do with the...
5
by: PCC | last post by:
I am using the Exception Managment Application Block on Windows Server 2003 Enterprise and .NET v1.1. If I use the block with an ASP.NET web wervice or in a web application I get the following...
3
by: Travis | last post by:
I am trying to prevent an exception from bubbling up from one nested Try/Catch Block to its "Parent" Try/Catch Block. Here is some example code: try{ try{ //Non-application killing code that...
0
by: Rhon Stewart via DotNetMonster.com | last post by:
Hi please visit this link : http://www.eggheadcafe.com/articles/pfc/selfupdater.asp I followed all the steps for listed on the link , when I execute the application it it gives me the following...
1
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...
7
by: Lucas | last post by:
Hi, I have an ASP.Net application written with VS.Net 2002 (Net FWK 1.0). This Web Application uses Exception Management Application Block to log Events to Windows Event Log. We registered the...
0
by: George Durzi | last post by:
I'm trying to extend the ExceptionManager Application Block and build a custom publisher that writes my exceptions to the database. That's easy part. The difficulty I am having is in configuring my...
3
by: SalamElias | last post by:
I am trying to use the exception application block but getting errors as indicated below. I am wondering if there is any newsgroups regarding the application blocks published by 1 year ago. I...
3
by: CharlieC | last post by:
I am writing a windows C# application, and I want to ensure that all exceptions, handled or otherwise, are logged to the local event log. I can do this for the handled exceptions, but I am not sure...
1
by: =?Utf-8?B?QnJldHQgT3NzbWFu?= | last post by:
I'm trying to set up a custome e-mail publisher for a web app using the Microsoft Exception Management Application Block for .NET sample app. Our app already uses the Exception Management Block,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.