Client cred flow not working in c# .NET

        string clientId = "";
        string clientSecret = "";
        const string serverUrl = "https://*****.com";

var client = new HttpClient();
client.BaseAddress = new Uri(serverUrl);

        var content = new FormUrlEncodedContent(new Dictionary<string, string>
        {
            {"grant_type", "client_credentials"} ,
            {"client_id", clientId} ,
            {"client_secret", clientSecret} ,
            {"Scope","SHNGEN" }
        }
        );
       // client.PostAsync()
        var response = await client.PostAsync("/oauth2/**************/v1/token", content);
       
        var responseBody = await response.Content.ReadAsStreamAsync();
        var tokens = await System.Text.Json.JsonSerializer.DeserializeAsync<TokenResponse>(responseBody, JsonSerializerOptions.Default);

I am not able to generate via c# but can do from psotman WITH OUT any issue

can any one please help me . This is CRITICAL … Please HELP

What happens when you try to run this? Do you see the /token request get made at all? Do you have any errors logged (you may want to add some breakpoints)?