I have two asp.net mvc-4 and mvc-5 web applications deployed under iss-8. Now from the first asp.net MVC web application i am calling an action method on the second web application , using the following :-
using (WebClient wc = new WebClient())
{
string url = currentURL + "Admin/scanserver";
var args = new NameValueCollection { { "FQDN", "allscan" } };
wc.Headers.Add("Authorization", token);
var json = await wc.UploadValuesTaskAsync(url, args);
TempData["messagePartial"] = string.Format("Scan completed");
}
now the operation take around 25-30 minutes to complete. and when i am calling the above using a web browser, the browser keeps loading for around 25 minutes , then it will show a message that the Scan completed. so i have the following questions:-
I read that the defualt timeout for the WebClient is 100 second,, but seems in my case the web client wait to receive the json for around 25 minutes, without raising any timeout...
i am using async methods to call the action method ,, so will this affect the timeout period ?
in the above example i am using
wc.UploadValuesTaskAsync
now let say i want to usewc.DownloadDateTaskAsync
will this have different timeout ?
can anyone advice on my above 3 questions please?
Thanks