unity and umbraco


If you are getting following error after upgrading your umbraco


The current type, Umbraco.Core.Models.IPublishedContent, is an interface and cannot be constructed. Are you missing a type mapping?

you are not alone :) I spent my precious Sunday afternoon to resolve it.