connect .net MVC application with dynamic 365 CRM using client secret connection string
open web.config/app.config
go to configuration > connection string then add following connection string
in you c# code use configuration manager to access the connection string
<add name="MyCRMServer"
connectionString="
AuthType=ClientSecret;
url=https://contoso:8080/Test;
ClientId={AppId};
ClientSecret={ClientSecret}
/>