{"action":"created","issue":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/206","labels_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/206/comments","events_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/206/events","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/206","id":97084443,"number":206,"title":"Windows 10 failed to create instance of Interface when I use IoC","user":{"login":"RikardoPons","id":8105850,"avatar_url":"https://avatars.githubusercontent.com/u/8105850?v=3","gravatar_id":"","url":"https://api.github.com/users/RikardoPons","html_url":"https://github.com/RikardoPons","followers_url":"https://api.github.com/users/RikardoPons/followers","following_url":"https://api.github.com/users/RikardoPons/following{/other_user}","gists_url":"https://api.github.com/users/RikardoPons/gists{/gist_id}","starred_url":"https://api.github.com/users/RikardoPons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RikardoPons/subscriptions","organizations_url":"https://api.github.com/users/RikardoPons/orgs","repos_url":"https://api.github.com/users/RikardoPons/repos","events_url":"https://api.github.com/users/RikardoPons/events{/privacy}","received_events_url":"https://api.github.com/users/RikardoPons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-24T16:07:50Z","updated_at":"2015-07-24T17:37:22Z","closed_at":null,"body":"Hello I'm playing with Caliburn micro 3.0 alpha \r\nI configured my project for using caliburn and works fine!.\r\n\r\nBut now I created a service with separated Assemblies this service has a provider, the order is like this:.\r\nMyProject.Provider\r\n   Provider.cs\r\nMyProject.Service\r\n  Service.cs\r\nMyProject.Interface\r\nIService.cs\r\n\r\nI added the references to my project of Windows 10 :\r\nMyProject.Service\r\nMyProject.IService\r\nI Added this service in the Configure method as Singleton:\r\n\r\ncontainer.Singleton<IService,Service>();\r\n\r\nIn the constructor of my ViewModel I added just this line of code:\r\n\r\nvar myService= IoC.Get<IService>();\r\n\r\nand throws an Exception\r\n\r\nAn exception of type 'System.MissingMethodException' occurred in mscorlib.ni.dll but was not handled in user code\r\n\r\nAdditional information: Cannot create an instance of an interface.\r\n\r\nI solved this issue overriding GetInstance method\r\n\r\n    protected override object GetInstance(Type service, string key)\r\n        {\r\n            var instance = container.GetInstance(service, key);\r\n            if (instance != null)\r\n                return instance;\r\n            throw new InvalidOperationException(\"Could not locate any instances.\");\r\n\r\n        }\r\nI think is a bug of Caliburn Micro.\r\nI know is an alpha version.\r\nI just want to report this Issue.\r\n\r\nBest Regards."},"comment":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/comments/124592128","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/206#issuecomment-124592128","issue_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/206","id":124592128,"user":{"login":"RikardoPons","id":8105850,"avatar_url":"https://avatars.githubusercontent.com/u/8105850?v=3","gravatar_id":"","url":"https://api.github.com/users/RikardoPons","html_url":"https://github.com/RikardoPons","followers_url":"https://api.github.com/users/RikardoPons/followers","following_url":"https://api.github.com/users/RikardoPons/following{/other_user}","gists_url":"https://api.github.com/users/RikardoPons/gists{/gist_id}","starred_url":"https://api.github.com/users/RikardoPons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RikardoPons/subscriptions","organizations_url":"https://api.github.com/users/RikardoPons/orgs","repos_url":"https://api.github.com/users/RikardoPons/repos","events_url":"https://api.github.com/users/RikardoPons/events{/privacy}","received_events_url":"https://api.github.com/users/RikardoPons/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T17:37:22Z","updated_at":"2015-07-24T17:37:22Z","body":"Yes, I will update my post."}}