File is not recognized as a valid URI File is not recognized as a valid URI

File is not recognized as a valid URI

This error occurs because the profiler tries to convert the source path from the PRDB file into a URI using the .Net System.Uri class. 

If the string is not a valid URI and cannot be converted into an absolute file path, the process fails with the title exception and citing the related file.

Expected URI format:

  1. A proper file URI, such as: file:///C:/path/to/file.cs
  2. A valid HTTP/HTTPS URI, such as: https: //example.com/src/file.cs
  3. Relative paths are allowed only if they can be resolved to an absolute path using Path.GetFullPath.