Reputation: 11
Could you please help me to know why this error appear ??
error:Severity Code Description Project File Line Suppression State Error CS0121 The call is ambiguous between the following methods or properties: 'System.Net.Http.HttpClientExtensions.SetBearerToken(System.Net.Http.HttpClient, string)' and 'System.Net.Http.HttpClientExtensions.SetBearerToken(System.Net.Http.HttpClient, string)' ImportTrustsApp C:\@Noha Basiony\NowInfinity Web\web\smsf.web\ImportTrustsApp\Program.cs 45 Active
Upvotes: 1
Views: 3408
Reputation: 674
It appears that older versions of System.Net.Http.HttpClientExtensions
assemblies have been cached and now they conflict with the newly installed assemblies. Please follow these steps, which should help you overcome the problem:
System.Net.Http.HttpClientExtensions
reference. System.Net.Http.HttpClientExtensions
reference.Upvotes: 2