{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/DependencyInjection/issues/182","labels_url":"https://api.github.com/repos/aspnet/DependencyInjection/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/DependencyInjection/issues/182/comments","events_url":"https://api.github.com/repos/aspnet/DependencyInjection/issues/182/events","html_url":"https://github.com/aspnet/DependencyInjection/issues/182","id":59389257,"number":182,"title":"Internal constructor causes vague exception message","user":{"login":"ryan-codingintrigue","id":9048902,"avatar_url":"https://avatars.githubusercontent.com/u/9048902?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-codingintrigue","html_url":"https://github.com/ryan-codingintrigue","followers_url":"https://api.github.com/users/ryan-codingintrigue/followers","following_url":"https://api.github.com/users/ryan-codingintrigue/following{/other_user}","gists_url":"https://api.github.com/users/ryan-codingintrigue/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-codingintrigue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-codingintrigue/subscriptions","organizations_url":"https://api.github.com/users/ryan-codingintrigue/orgs","repos_url":"https://api.github.com/users/ryan-codingintrigue/repos","events_url":"https://api.github.com/users/ryan-codingintrigue/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-codingintrigue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/DependencyInjection/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"pranavkm","id":174281,"avatar_url":"https://avatars.githubusercontent.com/u/174281?v=3","gravatar_id":"","url":"https://api.github.com/users/pranavkm","html_url":"https://github.com/pranavkm","followers_url":"https://api.github.com/users/pranavkm/followers","following_url":"https://api.github.com/users/pranavkm/following{/other_user}","gists_url":"https://api.github.com/users/pranavkm/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkm/subscriptions","organizations_url":"https://api.github.com/users/pranavkm/orgs","repos_url":"https://api.github.com/users/pranavkm/repos","events_url":"https://api.github.com/users/pranavkm/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/DependencyInjection/milestones/14","html_url":"https://github.com/aspnet/DependencyInjection/milestones/1.0.0-beta7","labels_url":"https://api.github.com/repos/aspnet/DependencyInjection/milestones/14/labels","id":1201088,"number":14,"title":"1.0.0-beta7","description":null,"creator":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2015-07-09T17:20:24Z","updated_at":"2015-07-29T00:18:52Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-03-01T09:16:13Z","updated_at":"2015-07-29T00:18:52Z","closed_at":"2015-07-29T00:18:52Z","body":"I've just spent a decent amount of time trying to debug the following exception:\r\n\r\n\r\n\r\n> System.ArgumentNullException\r\n> Object cannot be null.\r\n> Parameter name: source\r\n> \r\n> at\r\n> System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(Exception\r\n> source)  at\r\n> Microsoft.Framework.DependencyInjection.ServiceLookup.Service.CreateInstanceCallSite.Invoke(ServiceProvider\r\n> provider)  at\r\n> Microsoft.Framework.DependencyInjection.ServiceProvider.TransientCallSite.Invoke(ServiceProvider\r\n> provider)  at\r\n> Microsoft.Framework.DependencyInjection.ServiceLookup.Service.ConstructorCallSite.Invoke(ServiceProvider\r\n> provider)  at\r\n> Microsoft.Framework.DependencyInjection.ServiceProvider.TransientCallSite.Invoke(ServiceProvider\r\n> provider)  at\r\n> Microsoft.Framework.DependencyInjection.ServiceProvider.<>c__DisplayClass8_0.<RealizeService>b__0(ServiceProvider\r\n> provider)  at\r\n> Microsoft.Framework.DependencyInjection.ServiceProvider.GetService(Type\r\n> serviceType)  at\r\n> Microsoft.Framework.DependencyInjection.TypeActivator.ConstructorMatcher.CreateInstance(IServiceProvider\r\n> _services)  at Microsoft.Framework.DependencyInjection.TypeActivator.CreateInstance(IServiceProvider\r\n> services, Type instanceType, Object[] parameters)  at\r\n> Microsoft.AspNet.Mvc.DefaultControllerFactory.CreateController(ActionContext\r\n> actionContext)\r\n\r\nTurns out all that was wrong was the constructor for my concrete implementation was marked as `internal`. Changing it to `public` works fine. I understand why, but the exception message was not helpful in trying to diagnose the issue."}}