473,385 Members | 1,311 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,385 software developers and data experts.

Exception Management AB Issue in ASP.NET

I'm trying to use the "Exception Management Application Block" that Microsoft supplies. I've built and included all the relevant code but I'm hitting a wall. When throwing an exception to be generated in the event log in XML I get the following error on line 515:

System.Security.SecurityException: Requested registry access is not allowed.

Source Error:
Line 513: Private Sub VerifyValidSource()
Line 514: Try
Line 515: If Not EventLog.SourceExists(applicationName) Then
Line 516: EventLog.CreateEventSource(applicationName, logName)
Line 517: End If
In order to try to resolve this I've added the ASPNET account in to the Administrators group and made permisson changes to the registry EventLog hive but no joy. Microsoft's documentation suggests that this was an issue in the beta version of their code but not in the release version.

http://msdn.microsoft.com/library/en...rame=true&_r=1

Has anyone solved this issue or can offer assistance that would be great.

Thanks

Damon
Nov 18 '05 #1
2 946

"damon.f" <an*******@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
I'm trying to use the "Exception Management Application Block" that Microsoft supplies. I've built and included all the relevant code but I'm
hitting a wall. When throwing an exception to be generated in the event log
in XML I get the following error on line 515:
System.Security.SecurityException: Requested registry access is not allowed.
Source Error:
Line 513: Private Sub VerifyValidSource()
Line 514: Try
Line 515: If Not EventLog.SourceExists(applicationName) Then Line 516: EventLog.CreateEventSource(applicationName, logName) Line 517: End If
In order to try to resolve this I've added the ASPNET account in to the Administrators group and made permisson changes to the registry EventLog
hive but no joy. Microsoft's documentation suggests that this was an issue
in the beta version of their code but not in the release version.
http://msdn.microsoft.com/library/en...rame=true&_r=1
Has anyone solved this issue or can offer assistance that would be great.

Thanks

Damon


I've had that problem also. You need to "install" this block (on the
development machine(s)
and the server(s) where you deploy the app):
* start the "Visual Studio Command Prompt"
* go to the directory containing (some copy of) the dll's of this block
* execute " InstallUtil Microsoft.ApplicationBlocks.ExceptionManagement.dl l
"
This will grant this block access to the eventlog.

After that it works perfectly.

Hans Kesting
Nov 18 '05 #2
thanks Hans, that does work fine now.

Nov 18 '05 #3

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

Similar topics

1
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
by: Abelardo Vacca | last post by:
Hello, I am currently in the process of switching our application to a N-Tier model with .NET. One of the aspects we want ot get right from the start not to worry about it after is 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...
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
1
by: leodippolito | last post by:
Hello, I have these entities in my ASP.NET application: - data access layer (DATA) - custom exception class (EXCEPTION) - cache management class (CACHE) They're all built into different...
1
by: SQLJunkie | last post by:
Hi, I have installed SQL 2005 RTM on a new server and I keep getting this error (described below) quite frequently. Was wondering if anyone has a clue on what's happening here. I tried googling...
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,...
2
by: =?Utf-8?B?SXJmYW4=?= | last post by:
Hello, It may be a repeated question but I don't find the solution to the situation that I encounter in it. My application is monitoring another application that is built in VB6. The...
2
by: karthi84 | last post by:
Hi Experts, i have created a web application which has an option to edit the web config file from the web page. when i create an installer for this project using web setup project in VS2008 and...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.