Invalid paths using CloudFront create invalidation in C#
问题 I am trying to invalidate CloudFront objects in C#/.NET and gettign the following exception: Your request contains one or more invalid invalidation paths. My Function: public bool InvalidateFiles(string[] arrayofpaths) { for (int i = 0; i < arrayofpaths.Length; i++) { arrayofpaths[i] = Uri.EscapeUriString(arrayofpaths[i]); } try { Amazon.CloudFront.AmazonCloudFrontClient oClient = new Amazon.CloudFront.AmazonCloudFrontClient(MY_AWS_ACCESS_KEY_ID, MY_AWS_SECRET_KEY, Amazon.RegionEndpoint