What is not configured? Eighter point out which settings aren't set up or raise exception so it will be possible to pinpoint this line.