-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work around for UriFormatException caused by \\?\ prefix in the path #71082
Conversation
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
|
...ries/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs
Outdated
Show resolved
Hide resolved
...ries/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs
Outdated
Show resolved
Hide resolved
...ries/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs
Outdated
Show resolved
Hide resolved
/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.BaseDirectory
starts with\\?\
(long path prefix) Uri constructor throws UriFormatException:Invalid URI: The hostname could not be parsed
which causing WinForms designer failure:Moving the Uri creation code to where it is used and using
Uri.TryCreate
instead of the ctorPlease see the details from the issue: #70318
Fixes #70318