{"action":"created","issue":{"url":"https://api.github.com/repos/serilog/serilog-settings-appsettings/issues/5","repository_url":"https://api.github.com/repos/serilog/serilog-settings-appsettings","labels_url":"https://api.github.com/repos/serilog/serilog-settings-appsettings/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/serilog/serilog-settings-appsettings/issues/5/comments","events_url":"https://api.github.com/repos/serilog/serilog-settings-appsettings/issues/5/events","html_url":"https://github.com/serilog/serilog-settings-appsettings/issues/5","id":177144266,"number":5,"title":"System.UnauthorizedAccessException","user":{"login":"totpero","id":1710257,"avatar_url":"https://avatars.githubusercontent.com/u/1710257?v=3","gravatar_id":"","url":"https://api.github.com/users/totpero","html_url":"https://github.com/totpero","followers_url":"https://api.github.com/users/totpero/followers","following_url":"https://api.github.com/users/totpero/following{/other_user}","gists_url":"https://api.github.com/users/totpero/gists{/gist_id}","starred_url":"https://api.github.com/users/totpero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totpero/subscriptions","organizations_url":"https://api.github.com/users/totpero/orgs","repos_url":"https://api.github.com/users/totpero/repos","events_url":"https://api.github.com/users/totpero/events{/privacy}","received_events_url":"https://api.github.com/users/totpero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T10:43:32Z","updated_at":"2016-09-18T23:17:20Z","closed_at":"2016-09-18T23:17:20Z","body":"Hello,\r\n\r\nIn my Web App i get this error : \"Attempted to perform an unauthorized operation.\"\r\n\r\n```\r\nSystem.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\nSystem.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\nSystem.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\nSerilog.Settings.KeyValuePairs.KeyValuePairSettings.ApplyDirectives(List`1 directives, IList`1 configurationMethods, Object loggerConfigMethod)\r\nSerilog.Settings.KeyValuePairs.KeyValuePairSettings.Configure(LoggerConfiguration loggerConfiguration)\r\nSerilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)\r\nSerilog.Configuration.LoggerSettingsConfiguration.KeyValuePairs(IEnumerable`1 settings)\r\nSerilog.Settings.AppSettings.AppSettingsSettings.Configure(LoggerConfiguration loggerConfiguration)\r\nSerilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)\r\nSerilog.AppSettingsLoggerConfigurationExtensions.AppSettings(LoggerSettingsConfiguration settingConfiguration, String settingPrefix)\r\nSobis.IdentityServer.Startup.Configuration(IAppBuilder app) in Startup.cs: line: 58\r\n```\r\nInnerException:\r\n\r\n```\r\nMicrosoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)\r\nMicrosoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)\r\nMicrosoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey)\r\nSystem.Diagnostics.EventLog.DeleteEventSource(String source, String machineName)\r\nSerilog.Sinks.EventLog.EventLogSink..ctor(String source, String logName, ITextFormatter textFormatter, String machineName, Boolean manageEventSource)\r\nSerilog.LoggerConfigurationEventLogExtensions.EventLog(LoggerSinkConfiguration loggerConfiguration, String source, String logName, String machineName, Boolean manageEventSource, String outputTemplate, IFormatProvider formatProvider, LogEventLevel restrictedToMinimumLevel)\r\n```\r\n\r\nThis is my configuration:\r\n```\r\nLog.Logger = new LoggerConfiguration()\r\n                .ReadFrom.AppSettings()\r\n                .CreateLogger();\r\n```\r\nAnd in web.config i have this:\r\n```\r\n<add key=\"serilog:minimum-level\" value=\"Debug\" />\r\n<add key=\"serilog:write-to:Trace\" />\r\n<add key=\"serilog:using\" value=\"Serilog.Sinks.EventLog\" />\r\n<add key=\"serilog:write-to:EventLog.source\" value=\"test\" />\r\n```\r\n```\r\n<system.diagnostics>\r\n\t<!-- simple system.diagnostics logger -->\r\n\t<trace autoflush=\"true\" indentsize=\"4\">\r\n\t\t<listeners>\t\t\t\r\n\t\t\t<add name=\"IdentityServerListener\" type=\"System.Diagnostics.XmlWriterTraceListener\" initializeData=\"Trace.svclog\" />\r\n\t\t\t<remove name=\"Default\" />\r\n\t\t</listeners>\r\n\t</trace>\r\n</system.diagnostics>\r\n```"},"comment":{"url":"https://api.github.com/repos/serilog/serilog-settings-appsettings/issues/comments/247888960","html_url":"https://github.com/serilog/serilog-settings-appsettings/issues/5#issuecomment-247888960","issue_url":"https://api.github.com/repos/serilog/serilog-settings-appsettings/issues/5","id":247888960,"user":{"login":"nblumhardt","id":342712,"avatar_url":"https://avatars.githubusercontent.com/u/342712?v=3","gravatar_id":"","url":"https://api.github.com/users/nblumhardt","html_url":"https://github.com/nblumhardt","followers_url":"https://api.github.com/users/nblumhardt/followers","following_url":"https://api.github.com/users/nblumhardt/following{/other_user}","gists_url":"https://api.github.com/users/nblumhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/nblumhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nblumhardt/subscriptions","organizations_url":"https://api.github.com/users/nblumhardt/orgs","repos_url":"https://api.github.com/users/nblumhardt/repos","events_url":"https://api.github.com/users/nblumhardt/events{/privacy}","received_events_url":"https://api.github.com/users/nblumhardt/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T23:17:20Z","updated_at":"2016-09-18T23:17:20Z","body":"Hi - I'd guess this is https://github.com/serilog/serilog-sinks-eventlog/issues/10 - the exception originates in the EventLog sink rather than this package. Let's keep discussion in the one place over there 👍 "}}
{"actor":{"display_login":"nblumhardt"}}