Uh oh!
There was an error while loading. Please reload this page.
Work around for UriFormatException caused by \\?\ prefix in the path - #71082
Conversation
ghost
commented
Jun 21, 2022
Tagging subscribers to this area: @dotnet/area-system-configuration Issue DetailsWhen the path populated by Moving the Uri creation code to where it is used and using Please see the details from the issue: #70318 Fixes #70318
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
buyaa-n
commented
Jun 29, 2022
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/2585103475 |

When the path populated by

AppDomain.CurrentDomain.BaseDirectorystarts with\\?\(long path prefix) Uri constructor throws UriFormatException:Invalid URI: The hostname could not be parsedwhich causing WinForms designer failure:Moving the Uri creation code to where it is used and using
Uri.TryCreateinstead of the ctorPlease see the details from the issue: #70318
Fixes#70318