Visual studio 2019 : Debugging session ended unexpectedly
SSinhg
316
Reputation points
Hi,
Code block - is post method for creating
I'm using VS-2019 Community
debbging session ended unexpectedly... I have googled so much and tried various things but nothing has worked...
This never hits exception block...
On fiddler - request has no body but it should have... even then it should it hit the exception block!
Any help will be highly appreciated.
var json = JsonCustomResponse.JForCreate(issuesToCreate[i]);
var content = new StringContent(json, Encoding.UTF8, "application/json");
using (var client = new HttpClient())
{
ConfigureHttpClient(client, restUrl);
// this is where it breaks
var response = await client.PostAsync(restUrl, content);
}
Developer technologies | C#
11,573 questions
Sign in to answer