Activity must be an ICompiledExpressionRoot to determine expression id. Make sure that the current definition has been compiled. ...