I keep receiving The parameter is incorrect. Assets/Fonts/Segoe UI.otf is not a valid absolute URI. on Maui WinUI app

Hristov, Marian 0 Reputation points
2025-05-20T14:14:39.6333333+00:00

I keep receiving The parameter is incorrect. Assets/Fonts/Segoe UI.otf is not a valid absolute URI. on Maui WinUI app, eventhough I don't use this font anywhere and only Sentry seems to find this error. However this error occurs constantly and potentially take my sentry limit.

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Harry Vo (WICLOUD CORPORATION) 1,315 Reputation points Microsoft External Staff
    2025-08-25T07:57:35.1166667+00:00

    Hi @Hristov, Marian thank you for reaching out on Microsoft Q&A!

    Even though you didn't use this font anywhere, it worth a try to check by searching it using short-cut Ctrl + Shift + F and find Segoe UI. You might accidentally use this font as FontFamily = "SegoeUI"

    Also, please double check if you had defined this font in MauiProgram.cs / MauiApp.xaml.cs / App.xaml / App.xaml.cs. It can also be defined in Style or control template so please check them too.

    You can also fix this issue by install that font - Segoe UI.otf - to the URI Assets/Fonts/

    I hope this helps you get things back on track quickly! If my suggestions can solve your issue, feel free to interact with the system accordingly!

    Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.