Questions tagged [sendasync]
83 questions
1
vote
1 answer
How to write responses of multiple asynchronous get requests to a single file in asynchronous httpclient java 11?
I can download a single media file using httpclient in java 11 like this
public class Httptest {
private static HttpClient client = HttpClient.newBuilder().build();
public static void main(String[] args) throws Exception {
…

vicki
- 402
- 2
- 8
1
vote
1 answer
Forbidden error when adding content json to HttpRequesMessage.Content
This is getting list of orders from Orderhive API and it uses AWS4 Signature. With this code I am able to get the list of orders however I need to filter the order status to only get confirm orders.
My problem is to get only confirm orders.
public…

Jen143
- 815
- 4
- 17
- 42
1
vote
1 answer
Netty - sendAsync() group null pointer exception
I am trying to send messages between two processes in Java, using Atomix and Netty.
I have a program called Starter that is responsible to send a Message to all the running processes that are waiting for that message.
This is Starter:
Address[]…

zediogoviana
- 305
- 3
- 14
1
vote
1 answer
Why can't I use HttpClient for Syncrhonous calls from ASP.Net?
I'm using a client library for accessing a 3rd party API. The library was generated by NSwagStudio from Swagger documentation.
The app I'm working on is entirely synchronous in all its calls and updating it to be async is out of scope of what I'm…

TheLogicMan
- 371
- 4
- 12
1
vote
1 answer
SmtpClient SendAsync never calls SendCompleted callback
I'm working on an MVC C# website, .NET 4.0, and in one controller I need to send a lot of mail.
I copied my own code from a standalone program where I use SendAsynch passing a callback.
In the stanalone application all works.
Of course, in the…

Giorgio Forti
- 131
- 2
- 14
1
vote
0 answers
HttpClient SendAsync with Progress output to Console
I'm simply trying to have a basic SendAsync method write it's progress to the console, and even after a bunch of SO answers for GET, I'm not really seeing how this works for POST.
The file I'm testing with is ~ 100Mb and when it hits the SendAsync…

Chase Florell
- 46,378
- 57
- 186
- 376
1
vote
3 answers
WebAPI is returning 200 but the SendAsync call shows 500
I have an MVC application that calls a WebAPI async, both on POST and GET. When running both the WebAPI and MVC applications locally, the WebAPI response shows successful but the SendAsync request returns 500. Also, Fiddler doesn't show the API…

Kirby Kernen
- 123
- 3
- 11
1
vote
2 answers
SmtpClient.SendAsync() does not work anymore
I have recently purchased a new computer, and now my e-mails never get sent, and there are NEVER any exceptions thrown or anything.
Can somebody please provide some samples that work using the SmtpClient class? Any help at all will be greatly…
anon271334
1
vote
1 answer
Ping.SendAsync does not hit the call back PingCompletedEventHandler
I'm having some trouble with SendAsync method when passing an invalid IP - 0.0.0.51
Problem is, the Call back method (pingSender_PingCompleted) does not even get invoked. I do not see any errors what so ever.
IPAddress.TypeParse finds this IP as a…

Nandun
- 1,802
- 2
- 20
- 35
1
vote
1 answer
SendMail SendAsync
I have a strange problem with C# and sendmail async.
When I use the normal send method all works fine and my E-Mail is sending to the right SMTP-Server. But when I use the SendAsync-Method it doesn't work.
mailClient.SendCompleted +=…

simmeone
- 629
- 6
- 18
1
vote
1 answer
SendAsync Smtp Mail Error
Application requires that a use SendAsync rather than just Send. So i Made a Class CEmailServer and set up everything. So far Send works fine but when changing it to work with SendAsync it does not. I Created a Method to be called when a mail is…

Mordacai1000
- 329
- 1
- 3
- 14
1
vote
1 answer
How to understand C# SendAsync function?
When i program with C# to send a mail by batch,my code is like this:
public static bool Send(MailAddress Messagefrom,
string MessageTo,
string MessageSubject,
string MessageBody)
{
MailMessage message = new MailMessage();
…

Dolphin
- 29,069
- 61
- 260
- 539
1
vote
0 answers
How to fix this C# SendAsync Method?
I am a new ASP.NET developer and I am working on a project in which the admin/system can send an email to the user. As I don't want the admin to wait until the system sends the email, I plan to use SendAsync method.
However, I am getting a very…

Technology Lover
- 259
- 1
- 7
- 19
1
vote
1 answer
C#: Trouble with socket ReceiveAsync and SendAsync on Remote Host
First i want to say that this code with server/client works fine on my PC (both client and server running on the same PC)
Problem starts when i host the Server on dedicated server. The second time i try to Send or Receive with client, the client…

Daniel Raban
- 21
- 2
- 5
1
vote
0 answers
SmptClient SendAsync blocking application, not sending asynchronously
Im using the development server and the SmtpClient.SendAsync, the mail gets Sent, but it still blocks all other operations on the page until sending is complete. Ive searched alot and cant seem to see what the problem is
protected void…

Warren
- 384
- 4
- 17