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

Exception Management Application Block Question

P: n/a
PCC
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.
Nov 15 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

Nov 15 '05 #2

P: n/a
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.

Nov 15 '05 #3

P: n/a
PCC
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.


Nov 15 '05 #4

P: n/a
PCC
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.


Nov 15 '05 #5

P: n/a

"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.


Nov 15 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.