{"action":"closed","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/847","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/847/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/847/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/847/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/847","id":102407908,"number":847,"title":"AutoMapper 4 targeting wrong constructor on instantiation","user":{"login":"btwalleye","id":13904689,"avatar_url":"https://avatars.githubusercontent.com/u/13904689?v=3","gravatar_id":"","url":"https://api.github.com/users/btwalleye","html_url":"https://github.com/btwalleye","followers_url":"https://api.github.com/users/btwalleye/followers","following_url":"https://api.github.com/users/btwalleye/following{/other_user}","gists_url":"https://api.github.com/users/btwalleye/gists{/gist_id}","starred_url":"https://api.github.com/users/btwalleye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btwalleye/subscriptions","organizations_url":"https://api.github.com/users/btwalleye/orgs","repos_url":"https://api.github.com/users/btwalleye/repos","events_url":"https://api.github.com/users/btwalleye/events{/privacy}","received_events_url":"https://api.github.com/users/btwalleye/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/15","html_url":"https://github.com/AutoMapper/AutoMapper/milestones/4.1.0","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/15/labels","id":1248857,"number":15,"title":"4.1.0","description":"","creator":{"login":"jbogard","id":104498,"avatar_url":"https://avatars.githubusercontent.com/u/104498?v=3","gravatar_id":"","url":"https://api.github.com/users/jbogard","html_url":"https://github.com/jbogard","followers_url":"https://api.github.com/users/jbogard/followers","following_url":"https://api.github.com/users/jbogard/following{/other_user}","gists_url":"https://api.github.com/users/jbogard/gists{/gist_id}","starred_url":"https://api.github.com/users/jbogard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbogard/subscriptions","organizations_url":"https://api.github.com/users/jbogard/orgs","repos_url":"https://api.github.com/users/jbogard/repos","events_url":"https://api.github.com/users/jbogard/events{/privacy}","received_events_url":"https://api.github.com/users/jbogard/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":23,"state":"open","created_at":"2015-08-10T19:31:52Z","updated_at":"2015-09-03T13:30:26Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-08-21T15:47:54Z","updated_at":"2015-09-03T13:30:26Z","closed_at":"2015-09-03T13:30:26Z","body":"After updating to AutoMapper 4, I am receiving an error in a situation that used to work.  I have 2 different objects that I am trying to create a mapping for (ImportedContact -> Contact).  The destination object (Contact) has 2 constructors, one without parameters and another with 2 reference type parameters (SerializationInfo, StreamingContext).  When I try calling Mapper.Map to instantiate a new instance of the destination object (Contact) it is calling the constructor that takes 2 parameters.  AutoMapper 3 was using the parameter-less constructor.  This causes the following error:\r\n\r\n    \"Missing type map configuration or unsupported mapping.\r\n\r\n    Mapping types:\r\n    ImportedContact -> SerializationInfo\r\n    SharePointDirectory.Jobs.ImportedContact -> System.Runtime.Serialization.SerializationInfo\r\n\r\n    Destination path:\r\n    Contact\r\n\r\n    Source value:\r\n    SharePointDirectory.Jobs.ImportedContact\"\r\n\r\nHere is a link to some files that I have uploaded to Gist that can be put into a Console app and when ran will demonstrate the issue.  https://gist.github.com/ristogod/60ac506272bdd519485a\r\n"}}