HI all !
I have a problem (and a solution) for a problem with DNN7.3.3 and DNN7.3.4 version.
After the software update from DNN7.3.1 to 7.3.3 and 7.3.4 the DNN scheduler send an exception to log: "Sequence contains more than one matching element" and it stop all scheduled activities.
Identical situation happend if I try to force the execution of a task inside the host scheduler module.
I have downloaded the last DNN source code and i have found an error in:
DotNetNuke.Libary.Scheduler.GetServer
The error is in the "Single" function used to extract the ServerInfo with the correct executingServer name.. in my case there are 2 server with an identical name, one correct and one without the URL string! Single (for definiton in MSDN) raise an exception if there are 2 or more rows in list. The executor catch the exception and throw in a Thread.Sleep 10 minutes (in ..Scheduling.Scheduler.CoreScheduler.Start()) and it do not execute any schedule functions.
I have replace the code with
internal static ServerInfo GetServer(string executingServer)
{
var serverList = ServerController.GetServers();
var ret = (from x in serverList where x.ServerName.ToLower() == executingServer.ToLower() && !string.IsNullOrEmpty(x.Url) select x).First();
return ret;
}
And it works !
It is a DNN BUG or it is one of my software configurations ?