{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/2611","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/2611/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/2611/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/2611/events","html_url":"https://github.com/aspnet/Mvc/issues/2611","id":81139944,"number":2611,"title":"If you add a Console logger when AddWebApiConventions is enabled, startup fails.","user":{"login":"darrelmiller","id":447694,"avatar_url":"https://avatars.githubusercontent.com/u/447694?v=3","gravatar_id":"","url":"https://api.github.com/users/darrelmiller","html_url":"https://github.com/darrelmiller","followers_url":"https://api.github.com/users/darrelmiller/followers","following_url":"https://api.github.com/users/darrelmiller/following{/other_user}","gists_url":"https://api.github.com/users/darrelmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/darrelmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrelmiller/subscriptions","organizations_url":"https://api.github.com/users/darrelmiller/orgs","repos_url":"https://api.github.com/users/darrelmiller/repos","events_url":"https://api.github.com/users/darrelmiller/events{/privacy}","received_events_url":"https://api.github.com/users/darrelmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-26T21:17:16Z","updated_at":"2015-05-27T23:27:01Z","closed_at":"2015-05-27T23:27:01Z","body":"Object reference is equal null\r\n\r\n   at Microsoft.AspNet.Mvc.Logging.ActionDescriptorValues.<>c.<.ctor>b__0_5(KeyValuePair`2 i)\r\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\r\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)\r\n   at Microsoft.AspNet.Mvc.Logging.ActionDescriptorValues..ctor(ActionDescriptor inner)\r\n   at Microsoft.AspNet.Mvc.Core.DefaultActionDescriptorsCollectionProvider.GetCollection()\r\n   at Microsoft.AspNet.Mvc.Core.DefaultActionDescriptorsCollectionProvider.get_ActionDescriptors()\r\n   at Microsoft.AspNet.Mvc.Routing.AttributeRoute.GetInnerRoute()\r\n   at Microsoft.AspNet.Mvc.Routing.AttributeRoute..ctor(IRouter target, IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider, IInlineConstraintResolver constraintResolver, ILoggerFactory loggerFactory)\r\n   at Microsoft.AspNet.Mvc.Routing.AttributeRouting.CreateAttributeMegaRoute(IRouter target, IServiceProvider services)\r\n   at Microsoft.AspNet.Builder.BuilderExtensions.UseMvc(IApplicationBuilder app, Action`1 configureRoutes)\r\n   at Microsoft.AspNet.Builder.BuilderExtensions.UseMvc(IApplicationBuilder app)\r\n   at Mvc6Sandbox.StartupImplementation.Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) in C:\\Users\\Darrel\\Documents\\Source\\GitHub\\darrelmiller\\Mvc6Sandbox\\Mvc6SandboxApi\\Startup.cs:line 42\r\n\r\n\r\nHere is my startup:\r\n\r\npublic class Startup\r\n    {\r\n\r\n        public void ConfigureServices(IServiceCollection services)\r\n        {\r\n            services.AddLogging();\r\n            services.AddMvc();\r\n            services.AddWebApiConventions();\r\n        }\r\n\r\n        public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)\r\n        {\r\n            loggerFactory.AddConsole(LogLevel.Verbose);\r\n            app.UseMvc();\r\n        }\r\n    }"},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/106108770","html_url":"https://github.com/aspnet/Mvc/issues/2611#issuecomment-106108770","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/2611","id":106108770,"user":{"login":"darrelmiller","id":447694,"avatar_url":"https://avatars.githubusercontent.com/u/447694?v=3","gravatar_id":"","url":"https://api.github.com/users/darrelmiller","html_url":"https://github.com/darrelmiller","followers_url":"https://api.github.com/users/darrelmiller/followers","following_url":"https://api.github.com/users/darrelmiller/following{/other_user}","gists_url":"https://api.github.com/users/darrelmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/darrelmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrelmiller/subscriptions","organizations_url":"https://api.github.com/users/darrelmiller/orgs","repos_url":"https://api.github.com/users/darrelmiller/repos","events_url":"https://api.github.com/users/darrelmiller/events{/privacy}","received_events_url":"https://api.github.com/users/darrelmiller/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T23:27:01Z","updated_at":"2015-05-27T23:27:01Z","body":"It's the beta4.  I'll see if I can repro in beta5 and reopen an issue if I can."}}