castle 2.0 with error