Visual studio 2019 : Debugging session ended unexpectedly

SSinhg 316 Reputation points
2021-09-17T15:41:47.383+00:00

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#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.