Open GoogleCodeExporter opened 9 years ago
Also happens in my C# VSTO, which can cause Excel to hang and force termination
at the process.
Original comment by Michael....@gmail.com
on 19 Nov 2014 at 2:44
Original comment by pele...@google.com
on 23 Nov 2014 at 3:26
Original comment by pele...@google.com
on 23 Dec 2014 at 1:49
I got the same issue.
Tried to fix this like that :
using (var cts = new CancellationTokenSource())
{
cts.CancelAfter(TimeSpan.FromMinutes(1));
return GoogleWebAuthorizationBroker.AuthorizeAsync(
clientSecrets,
new[] { GOOGLE_SITES_SCOPE },
"user",
cts.Token,
_fileDataStore).Result;
}
but cancellation does not always occur.
Original comment by prop...@gmail.com
on 1 Apr 2015 at 8:50
I tried the same thing but with a longer TimeSpan. I haven't been able to
figure out why the timeout won't work in some cases. I have a higher successes
rate in my console apps than VSTO, so I think it might have something to do
with the starting environment.
Original comment by Michael....@gmail.com
on 1 Apr 2015 at 1:39
Original issue reported on code.google.com by
Michael....@gmail.com
on 19 Nov 2014 at 2:43