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