After upgrading from 7.0.5 to 7.3.1 I am getting an error thrown from the scheduler. It is being thrown by the internal method GetServer in Scheduler.cs when trying to return a single result from ServerController.GetServers().
internal static ServerInfo GetServer(string executingServer
{
return ServerController.GetServers().Single(s => s.ServerName.Equals(executingServer, StringComparison.OrdinalIgnoreCase));
The error in the log is:
2014-07-02 11:56:42,998 [AES-SL-271][Thread:Scheduler Thread][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
at DotNetNuke.Services.Scheduling.Scheduler.CoreScheduler.GetServer(String executingServer)
at DotNetNuke.Services.Scheduling.Scheduler.CoreScheduler.LoadQueueFromTimer()
at DotNetNuke.Services.Scheduling.Scheduler.CoreScheduler.Start()
This is happening on my QA as well as local dev machine.
We actually have in dbo.WebServers multiple entries by the same name and it appears to be looking for a unique record (Single).
Has anyone run into this? Is is a process for the upgrade to blow away this table and let it be rebuilt?
Thanks!