Skip to content
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

Uri Format Exception In UserControl without any CachedImage Control inside. #11

Open
ZuiMelanieForno opened this issue Apr 27, 2019 · 0 comments

Comments

@ZuiMelanieForno
Copy link

Hello.

I have in Visual Studio 2019 the issue of an UriFormatException.

I created a new UserControl as a View. Moved to a Namespace "Views".

But I don´t have Anything placed in the UserControl yet.

No ImageCache References or a ImageCache-Control.

<UserControl x:Class="Views.SettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewModels="clr-namespace:SerienNaGer_Desktop.ViewModels"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid />
</UserControl>

So I get Squiggly Lines under "<UserControl ", and following Exception.

UriFormatException: Ungültiger URI: Das URI-Format konnte nicht bestimmt werden.
UriFormatException: Invalid URI: The URI-Format could not be determined. <-Manual translation

StackTrace:
bei System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   bei System.Uri..ctor(String uriString)
   bei CachedImage.Image.<ImageUrlPropertyChanged>d__0.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

I had a Workaround for the other ImageCache-Controls, where I can´t use the XAML-Designer except I Remove the ImageUrl-Property from the Control temporarily.

This is somehow strange to me.
How does the ImageCache can "Bleed" into a UserControl?

thx in advance Zui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant