SPHierarchyDataSourceControl needs an SPWeb in order to work. Please use SPHierarchyDataSourceControl(SPWeb web) and pass ...