up the timeout on the http client request in C# code example
Example: set request timeout c#
<system.web>
<httpRuntime executionTimeout="600"/>
</system.web>
<system.web>
<httpRuntime executionTimeout="600"/>
</system.web>