Hi Stephen
Bogdan added some debug code so that we could see where the error was occuring and he is convinced that it is happening within the RevindexTaskSchedulerController constructor.
Below is a copy of the code that he is executing and the error occurs, maybe you can see what is wrong because he says he is at a loss. One thing I have noted which Bogdan agrees with is that if your TS was not flagged as iSearchable then SB would not try to access the module and I guess the issue would then go away. I dont see any reason why SB needs to be iSearchable so could you make this change so we can test it out unless of course you can see something wrong in the SB code below. Thanks.
foreach (ModuleInfo objModule in arrModules) {
if (string.IsNullOrEmpty(objModule.DesktopModule.BusinessControllerClass))
continue;
if (!businessControllers.ContainsKey(objModule.DesktopModule.BusinessControllerClass)) {
try {
object objController = DotNetNuke.Framework.Reflection.CreateObject(objModule.DesktopModule.BusinessControllerClass, objModule.DesktopModule.BusinessControllerClass);
if (!(objController is ISearchable))
throw new Exception(string.Format("BusinessControllerClass {0} does not implement ISearchable", objModule.DesktopModule.BusinessControllerClass));
businessControllers[objModule.DesktopModule.BusinessControllerClass] = objController;
} catch (Exception ex) {
string strMessage = string.Format("Error Creating BusinessControllerClass '{0}' of module({1}) id=({2}) in tab({3}) and portal({4}) ", objModule.DesktopModule.BusinessControllerClass, objModule.DesktopModule.ModuleName, objModule.ModuleID, objModule.TabID, objModule.PortalID);
Exceptions.LogException(new Exception(strMessage, ex));
logger.Error(new Exception(strMessage, ex));
continue; // go to next module
}
}
}