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 error:
------------------------------------
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.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception
Manager.cs:line 661
--- End of inner exception stack trace ---
at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception
Manager.cs:line 666
at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exc
eption exception, NameValueCollection additionalInfo, NameValueCollection
configSettings) in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception
Manager.cs:line 535
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInte
rnalException(Exception exception, NameValueCollection additionalInfo) in
D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception
Manager.cs:line 301
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc
eption exception, NameValueCollection additionalInfo) in D:\Program
Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception
Manager.cs:line 229
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc
eption exception) in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception
Manager.cs:line 66
at AuctionChannel.Service1.GetDataSet(String QueryName) in
C:\Inetpub\wwwroot\AuctionChannelBO
------------------------------------
I think this is a permissions issue with the ASP user, but I do not want to
change the ASP permissions (for other security reasons). Does anyone know
another way aroud this issue? Any pointers, links, samples, etc. would be
appreciated. Thank you. 5 5729
PCC,
If you don't want to change the ASPNET user permissions, then you can
change the permissions on the registry key that it is trying to access so
that the ASPNET user has access to it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"PCC" <pc*****@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl... 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 error:
------------------------------------
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.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 661 --- End of inner exception stack trace --- at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 666 at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exc eption exception, NameValueCollection additionalInfo, NameValueCollection configSettings) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 535 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInte rnalException(Exception exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 301 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 229 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 66 at AuctionChannel.Service1.GetDataSet(String QueryName) in C:\Inetpub\wwwroot\AuctionChannelBO
------------------------------------
I think this is a permissions issue with the ASP user, but I do not want
to change the ASP permissions (for other security reasons). Does anyone know another way aroud this issue? Any pointers, links, samples, etc. would be appreciated. Thank you.
Run installutil against the exception management block assembly - this
creates the event source.
Nick Wienholt, MVP
Maximizing .NET Performance http://www.apress.com/book/bookDisplay.html?bID=217
Sydney Deep .NET User Group www.sdnug.org
"PCC" <pc*****@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl... 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 error:
------------------------------------
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.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 661 --- End of inner exception stack trace --- at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 666 at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exc eption exception, NameValueCollection additionalInfo, NameValueCollection configSettings) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 535 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInte rnalException(Exception exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 301 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 229 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 66 at AuctionChannel.Service1.GetDataSet(String QueryName) in C:\Inetpub\wwwroot\AuctionChannelBO
------------------------------------
I think this is a permissions issue with the ASP user, but I do not want
to change the ASP permissions (for other security reasons). Does anyone know another way aroud this issue? Any pointers, links, samples, etc. would be appreciated. Thank you.
Thanks Nicholas, I swear you are always the first to answer any questions I
post in these newsgroups!
This never seemed to be an issue with .NET 1.0 and Windows 2000 Server. I
am a little hesitant to grant permissions to the ASPNET user if there was
another way around the problem. If nobody else comes up with a work around,
I will grant the ASPNET user the needed permissions. Thanks.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eU**************@TK2MSFTNGP11.phx.gbl... PCC,
If you don't want to change the ASPNET user permissions, then you can change the permissions on the registry key that it is trying to access so that the ASPNET user has access to it.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"PCC" <pc*****@hotmail.com> wrote in message news:en**************@tk2msftngp13.phx.gbl... 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 error:
------------------------------------
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.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 661 --- End of inner exception stack trace --- at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 666 at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exc eption exception, NameValueCollection additionalInfo,
NameValueCollection configSettings) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 535 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInte rnalException(Exception exception, NameValueCollection additionalInfo)
in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 301 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 229 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 66 at AuctionChannel.Service1.GetDataSet(String QueryName) in C:\Inetpub\wwwroot\AuctionChannelBO
------------------------------------
I think this is a permissions issue with the ASP user, but I do not want to change the ASP permissions (for other security reasons). Does anyone
know another way aroud this issue? Any pointers, links, samples, etc. would
be appreciated. Thank you.
Thanks Nick, that did it. I appreciate you taking a few moments to offer
you advice.
"Nick Wienholt" <go*********@hotmail.com> wrote in message
news:#y**************@TK2MSFTNGP12.phx.gbl... Run installutil against the exception management block assembly - this creates the event source.
Nick Wienholt, MVP Maximizing .NET Performance http://www.apress.com/book/bookDisplay.html?bID=217 Sydney Deep .NET User Group www.sdnug.org
"PCC" <pc*****@hotmail.com> wrote in message news:en**************@tk2msftngp13.phx.gbl... 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 error:
------------------------------------
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.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 661 --- End of inner exception stack trace --- at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 666 at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exc eption exception, NameValueCollection additionalInfo,
NameValueCollection configSettings) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 535 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInte rnalException(Exception exception, NameValueCollection additionalInfo)
in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 301 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 229 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 66 at AuctionChannel.Service1.GetDataSet(String QueryName) in C:\Inetpub\wwwroot\AuctionChannelBO
------------------------------------
I think this is a permissions issue with the ASP user, but I do not want to change the ASP permissions (for other security reasons). Does anyone
know another way aroud this issue? Any pointers, links, samples, etc. would
be appreciated. Thank you.
"Nick Wienholt" <go*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Run installutil against the exception management block assembly - this creates the event source.
Nick Wienholt, MVP Maximizing .NET Performance http://www.apress.com/book/bookDisplay.html?bID=217 Sydney Deep .NET User Group www.sdnug.org
"PCC" <pc*****@hotmail.com> wrote in message news:en**************@tk2msftngp13.phx.gbl... 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 error:
------------------------------------
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.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 661 --- End of inner exception stack trace --- at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.VerifyValid Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 666 at
Microsoft.ApplicationBlocks.ExceptionManagement.De faultPublisher.Publish(Exc eption exception, NameValueCollection additionalInfo,
NameValueCollection configSettings) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 535 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.PublishInte rnalException(Exception exception, NameValueCollection additionalInfo)
in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 301 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception, NameValueCollection additionalInfo) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 229 at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption exception) in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.Exc eptionManagement\Exception Manager.cs:line 66 at AuctionChannel.Service1.GetDataSet(String QueryName) in C:\Inetpub\wwwroot\AuctionChannelBO
------------------------------------
I think this is a permissions issue with the ASP user, but I do not want to change the ASP permissions (for other security reasons). Does anyone
know another way aroud this issue? Any pointers, links, samples, etc. would
be appreciated. Thank you.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: Abelardo Vacca |
last post by:
Hello,
Could anyone point out advantages and disadvantages of Apache's Log4net and
Microsoft's Exception Management Application Block?
I am leaning towards log4net, but I've read it can give...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Chuck Cobb |
last post by:
I'm implementing a centralized exception handling routine using the
Enterprise Library Exception Management Application Block.
I trap all unhandled exceptions to one place using the following...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |