P
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(String source, String
logName, String machineName, Boolean useMutex)
at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName)
at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 661
--- End of inner exception stack trace ---
at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 666
at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
eption exception, NameValueCollection additionalInfo, NameValueCollection
configSettings) in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 535
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
rnalException(Exception exception, NameValueCollection additionalInfo) in
D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 301
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception, NameValueCollection additionalInfo) in D:\Program
Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 229
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception) in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\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.
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(String source, String
logName, String machineName, Boolean useMutex)
at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName)
at System.Diagnostics.EventLog.CreateEventSource(String source, String
logName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 661
--- End of inner exception stack trace ---
at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValid
Source() in D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 666
at
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exc
eption exception, NameValueCollection additionalInfo, NameValueCollection
configSettings) in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 535
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInte
rnalException(Exception exception, NameValueCollection additionalInfo) in
D:\Program Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 301
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception, NameValueCollection additionalInfo) in D:\Program
Files\Microsoft Application Blocks for .NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\Exception
Manager.cs:line 229
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception) in D:\Program Files\Microsoft Application Blocks for
..NET\Exception
Management\Code\CS\Microsoft.ApplicationBlocks.ExceptionManagement\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.