Questions tagged [sendasync]

83 questions
0
votes
0 answers

Stackoverflow in Socket.SendAsync C#

I have a problem where my application crashes what seems to be at random. It works for maybe up to 30 min, and then I just crashes, if I debug I get an error at the row mySocket.SendAsync(completeArgs) It's a stackoverflow error... I do the…
Nick3
  • 639
  • 1
  • 14
  • 40
0
votes
1 answer

C# smtp asyncsend not sending

I am trying to send emails via sendasync. The problem is it doesn't seem to go into the sendcompleted event handler. I added a break point there, but it never triggers. The program just waits at my semaphore. Any ideas? The program is a windows…
blackwolfsa
  • 327
  • 3
  • 14
-1
votes
1 answer

HttpMethod.Get -- System.Net.ProtocolViolationException: 'Cannot send a content-body with this verb-type.'

I need to send XML request to REST API , it is Get Request (i cannot use Post). This code is working from Postman but in C# .Net 4.8.1 framework this code is not working , i am getting error 'Cannot send a content-body with this verb-type.' I…
Lucky Star
  • 53
  • 8
-1
votes
1 answer

Modify RequestUri in C# WebApi

I have a ASp.Net WebApi and I add the DelegatingHandler for modify the requestUri. I tried some examples without results, It is possible? I Would like to encrypt (client) Decrypt (WebApi) part of the URL. In the WebApi exists the controller with the…
-1
votes
1 answer

C# HttpClient.SendAsync causes error, cannot send a content-body with this verb-type

I am getting error cannot send a content-body with this verb-type. I am calling a GET Endpoint from a C# VSTO desktop application. What am I doing wrong. public static string GetCentralPath(LicenseMachineValidateRequestDTO licenseMachine) { …
Sujoy
  • 1,051
  • 13
  • 26
-1
votes
1 answer

C# Need Help Returning Lowest Ping using SendAsync

I have the following code that is working and pings all of the Runescape game servers and returns a list in the console of the ip addresses and the respective 'roundtrip' time taken. EDIT 'IGNORE SOME OF THE OLD COMMENTS' I am having trouble with…
-1
votes
1 answer

Is there any way to set SendEmailAsync to isHtml= true?

I am working on Forgot Password Functionality in Asp.Net MVC. I am able to successfully send forgot password link to email thorugh SendEmailAsync Method, but email is isHtml = false. How can I make it to true? public Task SendAsync(IdentityMessage…
M Armaan
  • 39
  • 8
-2
votes
1 answer

How to display the actual result from SmtpClient.SendAsync() in a asp.net MVC view?

SmtpClient.SendAsync() call will not return a result as SmtpClient.Send() does, but will proceed and cannot display a result in a view. So how do I hook a callback function here, get a send email result/error and display it in a view?? Thanks.
Alexander
  • 65
  • 1
  • 6
1 2 3 4 5
6