Hello Ashokrmy,
Sorry for the late response I had an emergency I was in hospital.
Kindly have a look below steps:
First of all you need to register your web api to the azure portal within the App Registration button.

Now click on New Registration button.

Provide any meaningful name of the app. select the tenant and also provide the redirect Uri and click on Register button. You can refer attached screen shot.

after successfully registration copy the Application (Client) Id and paste it somewhere for future use. And now click on certificate and secret.

Now click on New Client Secret Button

Now provide the Description and Expires time and Click on Add button.

Now copy the Value and keep it safe as you can not find the Client secret once the page reloaded.

Now add the app permissions to provide the same Navigate to API Permissions => Add a Permission => Select Dynamics 365 CRM.

Now have a look below screenshot and follow the steps.

Next step you have to Grant the admin consent for the app to do that you have to navigate to API Permissions => Grant Admin Consent for test app. to do that you should have Global Administrator rights/permissions.

Now you have to Create the Application User within your dynamics 365 CRM. To create the application user you can follow below steps.
1. Login to https://admin.powerplatform.microsoft.com/environments
2. Now Navigate to: Environment => Select your environment => Settings.

Now navigate to Users + Permissions => Application Users

Now add your Application that you have registered to the Azure Portal earlier, Select the Business Unit from the drop down and also Provide the security Roles. I have provided the System Administrator, System Customizer Roles to the application n user.


if the Application user created successfully.
Now you are all set now you have to write you code. Kindly have a look below code.
string connectionString ="AuthType=ClientSecret;" +"url=https://Your Organization.crm.dynamics.com;" +"ClientId=Paste the client Id here that you coplied earlier;" +"ClientSecret=Paste your client secret here";
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
CrmServiceClient svc = new CrmServiceClient(connectionString);
if (svc.IsReady)
{
Console.WriteLine("Connection Created");
}
Console.ReadLine();
I am also pasting the screenshot of the code. Kindly have a look.

Also you have added the supported and Latest version of Microsoft.Xrm.Sdk. you can use below install nuget using below command.
Install-Package Microsoft.CrmSdk.CoreAssemblies -Version 9.0.2.42