I am moving scheduled tasks from one server to another. The initial server (dev1) is not a virtual machine but the new server (vdev2) is a virtual machine.
The tasks are calling our websites API, pulling the data and adding it to our database via a C# application using the HTTPClient library to get the data.
The tasks were running fine off dev1 but now that I have moved them to vdev2 I consistently get the error code: 0xE0434352 when running them. This seems to be a catch-all error code. In Event Viewer the error reads:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.WebException
at System.Net.HttpWebRequest.EndGetResponse(System.IAsyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(System.IAsyncResult)
Exception Info: System.Net.Http.HttpRequestException
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResult()
at DataDownloader.APIHelper+<Get>d__4.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResult()
at DataDownloader.Worker+<DoYourWork>d__4.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at DataDownloader.Program+<Main>d__0.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at DataDownloader.Program.<Main>(System.String[])
After adding a logger to the application I caught this exception:
System.Net.Http.HttpRequestException
Message : An error occurred while sending the request.
Other applications on vdev1 are able to make API calls but I don't believe any of them are implementing the HttpClient library. I also have no reason to believe there are permission issues when Task Scheduler is running the executables. Any ideas?
User contributions licensed under CC BY-SA 3.0