Wednesday, February 23, 2022

SharePoint CSOM get absolute url from FileRef

 This one liner can return absolute url of an item using its FileRef property

var absoluteUrl = new Uri(context.Url).GetLeftPart(UriPartial.Authority) + serverRelativeUrl;



No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...