Why are you waiting for the completion of your task?
I think Task.Wait blocks your current thread, then you get a timeout when the service starts.
EDIT: you need to remove this block:
try { Task.Wait(task1); } catch (Exception ex) { this.Log.Error("Failed running the task", ex); }
Task.Wait really blocks your current thread. According to MSDN :
Task.Wait Method
Waits for a task to complete.
EDIT 2 Do it instead
Task task1 = Task.Factory.StartNew(() => this.OriginalFileProcessor.StartPolling()).ContinueWith( t => { var aggException = t.Exception.Flatten(); foreach(var ex in aggException.InnerExceptions) this.Log.Error("Failed running the task", ex); }, TaskContinuationOptions.OnlyOnFaulted);
source share