Questions tagged [aggregateexception]
61 questions
0
votes
1 answer
c# wpf How to catch FirestoreChangeListener exceptions
I am creating several FirestoreChangeListeners (following the User Guide at https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Firestore/userguide.html) and everything is working fine, but when there is a network problem, a…

Damian
- 119
- 1
- 10
0
votes
0 answers
Aggregating Event Exceptions
I'm following on with a tutorial detailing handling events thrown in multiple subscribers to an event. However when the code is run, the TargetInvocationException catch block isn't catching the exceptions thrown in the method body of the…

James
- 356
- 2
- 13
0
votes
2 answers
Why is TcpClient.Connect() throwing System.AggregateException
I am trying to check the TCP connection to a localhost TCP server (ActiveMQ broker) using following code:
string host = "localhost";
int port = 61616;
using (TcpClient tcpClient = new TcpClient())
{
try
{
Task t = Task.Run(() =>…

Sayan Sen
- 1,654
- 3
- 16
- 26
0
votes
0 answers
Async seems to be running the tasks to completion before getting to the Await tag
I'm working on a backup manager for some Quest (critical infrastructure monitoring devices) when running the Code it seems to be running my tasks as its adding them to a task list before calling .WhenAll. then when calling .WhenAll i get null ref…

Brett Jackson
- 41
- 4
0
votes
1 answer
HttpClient PostAsync method throw Aggregate Exception
I would like to use the http client class to call an api controller method and the PostAsync method has thrown an Aggregate Exception. I tried to write an async method what call the PostAsync and try the ContinueWith method but no one of them work.…

Bence Balyi
- 3
- 2
0
votes
0 answers
Falling into exception "One or more errors occurred." Aggregate Exception
I am using parallel.foreach in my code to submit multiple url for my application. Initially it work fine but after few day I noticed this exception occurs often. I googled it for many hours but no luck for me.
Explaination: We have Api SMS system…

Khurram Shaikh
- 300
- 2
- 14
0
votes
1 answer
Cannot use "foreach" to go through exceptions because Exception does not contain 'GetEnumerator'
I want to report about Exceptions that are thrown during execution of some tasks:
//waiting for all the tasks to complete
try
{
Task.WaitAll(task1, task2, task3);
}
catch (AggregateException ex)
{
//enumerate the exceptions
foreach…

gene
- 2,098
- 7
- 40
- 98
0
votes
0 answers
c# , parrallel.foreach can't handle AggregateException with files and complete loop
I got the problem in my pet-project. Totally I wanna counting the files in some directory filtering them by some options (length). It works good for me when "reading" of files or directories occured where I have access.In other way it crashed my…
user5783755
0
votes
0 answers
Send Consecutive Posts
I am wanting to sequentially send POST() data to a website. I want post1 to finish, then begin post2, then begin post3 etc etc. I have syntax that compiles, but I get an error of that I am unsure how to overcome.
AggregateException was caught
…

MasterOfStupidQuestions
- 925
- 1
- 16
- 37
0
votes
0 answers
AggregateException on Cluster.OpenBucket method in Couchbase
I am trying out Couchbase database, I've followed the tutorial here:
http://developer.couchbase.com/documentation/server/4.0/sdks/dotnet-2.2/hello-couchbase.html
I've installed the nugget from Package manager, and started to code. But as I am trying…

Pavel Durov
- 1,287
- 2
- 13
- 28
0
votes
1 answer
'System.AggregateException' occurred in mscorlib.dll, when trying to authenicate using Google API
I'm trying to make a little calendar app, just for myself, using Google Calendar API. I'm using C# and .NET for this. Basically, all I did was copy the example code from here
and added FileDataStore class from here
Created a project in Google…

graynk
- 131
- 1
- 2
- 17
0
votes
1 answer
CloudFileShare CreateIfNotExistsAsync().Wait method throwing The remote server returned an error: (400) Bad Request
I am trying to use the Azure File Service preview as a mapped drive between my two instances of a cloud service and I came across the following blog post with some…

Jay
- 3,012
- 14
- 48
- 99
0
votes
1 answer
AggregateException in release mode
I have three tasks and I called
Task.WaitAll(task1,task2,task3) after I started the three tasks.
This program works fine in debug mode.
When it turns to release mode, an AggregateException throwed.
I would like to know how can I find the cause of…

Singed
- 93
- 1
- 9
0
votes
1 answer
Task.WaitAll not throwing AggregateException while one of the task is still running
var moduleTimeOut = 3000;
var errorsThatOccurred = new List();
List names = new List() { "Task1", "Task2", "Task3" };
var tasks = new List>();
names.ForEach( name => tasks.Add( Task.Factory.StartNew((m)…

user1186065
- 1,847
- 3
- 17
- 22
-1
votes
1 answer
GetAsync gives AggregateException
HttpResponseMessage response =
client.GetAsync("api/MOB_Vw_UsersAPI/GetMOB_Vw_Users?Uname=" +
uname + "&Pass=" + pass).Result;
When I run this part of code on Windows Phone emulator things going well and it works fine. However, when I…

FSD
- 375
- 3
- 15